From ea5d2c2aa0066934e782d022358b66808f38f0ba Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 19 Dec 2016 12:16:16 +1300 Subject: Don't use /bin/sh It sets $SHELL for me inappropriately --- tmux/tmux.conf.m4 | 4 ++-- 1 file 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' -- cgit v1.2.3