aboutsummaryrefslogtreecommitdiff
path: root/tmux
diff options
context:
space:
mode:
Diffstat (limited to 'tmux')
-rw-r--r--tmux/tmux.conf.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/tmux/tmux.conf.m4 b/tmux/tmux.conf.m4
index a10990c1..9f1aa80f 100644
--- a/tmux/tmux.conf.m4
+++ b/tmux/tmux.conf.m4
@@ -16,8 +16,8 @@ set-environment -gru SHLVL
set-option -g update-environment ''
# Setting this makes each new pane a non-login shell, which suits me better
-set-option -g default-command "exec $SHELL"
-set-option -g default-shell "/bin/sh"
+# Clear away SHLVL again first to stop it getting incremented twice
+set-option -g default-command "unset SHLVL ; exec $SHELL"
# Expect a 256-color terminal
set-option -g default-terminal 'screen-256color'