Skip to content

Commit

Permalink
position comment correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
keks24 committed Oct 6, 2022
1 parent 3153fc7 commit 43f2253
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vim-tmux-navigator.tmux
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ tmux bind-key -n C-l if-shell "[ '#{pane_current_command}' != '#{s/g?(view|n?vim
# bring back clear screen (PREFIX + CTRL + l)
tmux bind-key C-l send-keys "C-l"

# if "${tmux_version}" is greater or equal "3.0", then "send-keys C-\\\\", else "send-keys C-\\"
# https://unix.stackexchange.com/a/285928
tmux_version=$(tmux display-message -p "#{version}")
tmux setenv -g tmux_version "${tmux_version}"

# if "${tmux_version}" is greater or equal "3.0", then "send-keys C-\\\\", else "send-keys C-\\"
# https://unix.stackexchange.com/a/285928
tmux if-shell -b "[ #(printf '%s\n' '3.0' '${tmux_version}' | sort --version-sort | head --lines='1') ]" \
"bind-key -n C-\\ 'send-keys C-\\\\' 'select-pane -l'" \
"bind-key -n C-\\ 'send-keys C-\\' 'select-pane -l'"
Expand Down

0 comments on commit 43f2253

Please sign in to comment.