diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-19 10:18:13 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-19 10:18:13 +1300 |
commit | 0a48ef9fc7c78322baef0f04f07cdc5494d88ea4 (patch) | |
tree | e2c2e856e335f8a6794335c8ffb67276c9119418 /sh | |
parent | Defer kshrc loading until after shrc all loaded (diff) | |
download | dotfiles-0a48ef9fc7c78322baef0f04f07cdc5494d88ea4.tar.gz dotfiles-0a48ef9fc7c78322baef0f04f07cdc5494d88ea4.zip |
Attempt a much saner approach to managing SHLVL
Diffstat (limited to 'sh')
-rw-r--r-- | sh/shrc.d/tmux.sh | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sh/shrc.d/tmux.sh b/sh/shrc.d/tmux.sh index 32780c9d..bd954be8 100644 --- a/sh/shrc.d/tmux.sh +++ b/sh/shrc.d/tmux.sh @@ -17,12 +17,3 @@ tmux() { # Execute with concluded arguments command tmux "$@" } - -# If we have a SHLVL set from one of the shells that does that (bash, ksh93, -# zsh), then set a SHLVL-derived value that takes tmux into account if we -# haven't already. This can be used to show the current SHLVL in the prompt for -# more advanced shells. -if [ -n "$SHLVL" ] && [ -n "$TMUX" ] && [ -z "$TMUX_SHLVL" ] ; then - TMUX_SHLVL=$((SHLVL - 1)) - export TMUX_SHLVL -fi |