path: root/tmux
diff options
authorTom Ryder <tom@sanctum.geek.nz>2016-12-19 11:23:57 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-19 11:31:04 +1300
commit40da2752a18341c1f21093a2695e85898126dad6 (patch)
treef558a3b70b1b14ada52dcb129ceb3224376c05ac /tmux
parent5821894757e4cf6615f86600d17169c3ef760748 (diff)
Here's the answer; unset SHLVL in default-command
Diffstat (limited to 'tmux')
1 files changed, 1 insertions, 6 deletions
diff --git a/tmux/tmux.conf.m4 b/tmux/tmux.conf.m4
index 7b3fff51..1784f4de 100644
--- a/tmux/tmux.conf.m4
+++ b/tmux/tmux.conf.m4
@@ -8,17 +8,12 @@ set-environment -gru SSH_CONNECTION
set-environment -gru SSH_TTY
set-environment -gru WINDOWID
-# Reset SHLVL
-# This doesn't work quite right yet; if your SHELL is something that increments
-# SHLVL, it gets incremented twice; need to figure out a clean solution to this
-set-environment -gru SHLVL
# Otherwise, use the environment we had when we started; don't touch it during
# a session unless I specifically ask
set-option -g update-environment ''
# Setting this makes each new pane a non-login shell, which suits me better
-set-option -g default-command "$SHELL"
+set-option -g default-command "unset SHLVL ; $SHELL"
# Expect a 256-color terminal
set-option -g default-terminal 'screen-256color'