aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tmux.12
-rw-r--r--tmux.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tmux.1 b/tmux.1
index 17dc225f..9bada894 100644
--- a/tmux.1
+++ b/tmux.1
@@ -947,7 +947,7 @@ Set the command used for new windows (if not specified when the window is
created) to
.Ar command .
The default is
-.Dq exec $SHELL .
+.Dq exec $SHELL -l .
.It Ic default-path Ar path
Set the default working directory for processes created from keys, or
interactively from the prompt.
diff --git a/tmux.c b/tmux.c
index 820ffb6b..069dc551 100644
--- a/tmux.c
+++ b/tmux.c
@@ -369,7 +369,7 @@ main(int argc, char **argv)
shell = _PATH_BSHELL;
}
options_set_string(
- &global_options, "default-command", "exec %s", shell);
+ &global_options, "default-command", "exec %s -l", shell);
if (getcwd(cwd, sizeof cwd) == NULL) {
log_warn("getcwd");