From 43ce79c8c33c0a8016b4eead7146178753a766d0 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Tue, 13 Aug 2019 17:00:47 +0100 Subject: [PATCH] Fix `in_vim` to work on Linux Mint 18 --- tmux.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tmux.conf b/tmux.conf index 29c3a34..4826669 100644 --- a/tmux.conf +++ b/tmux.conf @@ -62,8 +62,8 @@ bind '"' split-window -c '#{pane_current_path}' bind '%' split-window -h -c '#{pane_current_path}' # Integrate pane selection with vim -in_vim='[[ "$(tmux show-window-options)" = *"@vim#{pane_id}"* ]] && \ - [[ "#{pane_current_command}" != zsh ]]' +in_vim='tmux show-window-options | grep -q "@vim#{pane_id}" && \ + [ "#{pane_current_command}" != "zsh" ]' bind -n C-h if $in_vim 'send-keys C-h' 'select-pane -L' bind -n C-j if $in_vim 'send-keys C-j' 'select-pane -D' bind -n C-k if $in_vim 'send-keys C-k' 'select-pane -U'