aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-12-18 23:35:41 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-18 23:35:41 +1300
commitbc8e7346a9f4d0d2c65b47c9642ef8a460ce71d8 (patch)
tree2521adf771e421463a23dd7ec7fa49edc03c0735 /bash/bashrc
parentMerge branches 'freebsd' and 'openbsd' (diff)
downloaddotfiles-bc8e7346a9f4d0d2c65b47c9642ef8a460ce71d8.tar.gz
dotfiles-bc8e7346a9f4d0d2c65b47c9642ef8a460ce71d8.zip
Move TMUX_SHLVL trick into shrc.d
Diffstat (limited to 'bash/bashrc')
-rw-r--r--bash/bashrc7
1 files changed, 0 insertions, 7 deletions
diff --git a/bash/bashrc b/bash/bashrc
index 57d4bcf6..088182ef 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -81,13 +81,6 @@ if ((BASH_VERSINFO[0] >= 4)) ; then
((BASH_VERSINFO[1] >= 3)) && shopt -s direxpand
fi
-# Set a SHLVL-derived value that takes tmux into account. This is used to show
-# the current SHLVL in the prompt
-if [[ -n $TMUX && -z $TMUX_SHLVL ]] ; then
- TMUX_SHLVL=$((SHLVL - 1))
- export TMUX_SHLVL
-fi
-
# Load Bash-specific startup files
for sh in "$HOME"/.bashrc.d/*.bash ; do
[[ -e $sh ]] && source "$sh"