Check for tmux session in prompt
Before invoking the `tmux` command to unset the vim pane variable first check that a `tmux` session exists.
This commit is contained in:
parent
a3832ff49e
commit
610cae2f57
@ -110,9 +110,9 @@ fresh_line_one() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Unset vim/tmux navigate flag to handle C-z and multiple vim jobs.
|
# Unset vim/tmux navigate flag to handle C-z and multiple vim jobs.
|
||||||
if [[ ! -z "$TMUX" ]]; then
|
[[ ! -z "$TMUX" ]] && \
|
||||||
tmux set-window-option -u @vim$TMUX_PANE
|
[[ "`tmux show-window-options`" = *"@vim$TMUX_PANE"* ]] && \
|
||||||
fi
|
tmux set-window-option -u @vim$TMUX_PANE
|
||||||
|
|
||||||
# If a virtualenv is enabled, display it's basename
|
# If a virtualenv is enabled, display it's basename
|
||||||
if [[ ! -z "$VIRTUAL_ENV" ]]; then
|
if [[ ! -z "$VIRTUAL_ENV" ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user