Don't unset tmux option when not in tmux

This commit is contained in:
Kenneth Benzie 2019-08-22 21:31:56 +01:00
parent fcae9e885e
commit 47f821e80a

View File

@ -110,7 +110,9 @@ fresh_line_one() {
fi
# Unset vim/tmux navigate flag to handle C-z and multiple vim jobs.
tmux set-window-option -u @vim$TMUX_PANE
if [[ ! -z "$TMUX" ]]; then
tmux set-window-option -u @vim$TMUX_PANE
fi
# If a virtualenv is enabled, display it's basename
if [[ ! -z "$VIRTUAL_ENV" ]]; then