mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
If no title is supplied, term uses only the basename for its title.
This is useless when searching for windows launched via the ssh command menu; supply a more useful title: '[ssh] <hostname>'. Idea from todd@, ok todd@
This commit is contained in:
parent
3d2eec293a
commit
79248a385b
4
kbfunc.c
4
kbfunc.c
@ -354,8 +354,8 @@ kbfunc_ssh(struct client_ctx *cc, union arg *arg)
|
|||||||
search_match_exec, NULL)) != NULL) {
|
search_match_exec, NULL)) != NULL) {
|
||||||
if (mi->text[0] == '\0')
|
if (mi->text[0] == '\0')
|
||||||
goto out;
|
goto out;
|
||||||
l = snprintf(cmd, sizeof(cmd), "%s -e ssh %s", Conf.termpath,
|
l = snprintf(cmd, sizeof(cmd), "%s -T '[ssh] %s' -e ssh %s",
|
||||||
mi->text);
|
Conf.termpath, mi->text, mi->text);
|
||||||
if (l != -1 && l < sizeof(cmd))
|
if (l != -1 && l < sizeof(cmd))
|
||||||
u_spawn(cmd);
|
u_spawn(cmd);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user