mirror of
https://github.com/tmux/tmux.git
synced 2025-01-05 23:38:48 +00:00
spawn login shells by default, adapt manpage bits as well.
ok nicm@
This commit is contained in:
parent
f60bc7e03b
commit
dc373abba8
2
tmux.1
2
tmux.1
@ -947,7 +947,7 @@ Set the command used for new windows (if not specified when the window is
|
|||||||
created) to
|
created) to
|
||||||
.Ar command .
|
.Ar command .
|
||||||
The default is
|
The default is
|
||||||
.Dq exec $SHELL .
|
.Dq exec $SHELL -l .
|
||||||
.It Ic default-path Ar path
|
.It Ic default-path Ar path
|
||||||
Set the default working directory for processes created from keys, or
|
Set the default working directory for processes created from keys, or
|
||||||
interactively from the prompt.
|
interactively from the prompt.
|
||||||
|
2
tmux.c
2
tmux.c
@ -369,7 +369,7 @@ main(int argc, char **argv)
|
|||||||
shell = _PATH_BSHELL;
|
shell = _PATH_BSHELL;
|
||||||
}
|
}
|
||||||
options_set_string(
|
options_set_string(
|
||||||
&global_options, "default-command", "exec %s", shell);
|
&global_options, "default-command", "exec %s -l", shell);
|
||||||
|
|
||||||
if (getcwd(cwd, sizeof cwd) == NULL) {
|
if (getcwd(cwd, sizeof cwd) == NULL) {
|
||||||
log_warn("getcwd");
|
log_warn("getcwd");
|
||||||
|
Loading…
Reference in New Issue
Block a user