From 47f821e80a81b12d09cd9cd22e8f6f5750a1c2f2 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Thu, 22 Aug 2019 21:31:56 +0100 Subject: [PATCH] Don't unset tmux option when not in tmux --- prompt_fresh_setup | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/prompt_fresh_setup b/prompt_fresh_setup index 7e03286..04c9b47 100644 --- a/prompt_fresh_setup +++ b/prompt_fresh_setup @@ -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