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'