diff options
Diffstat (limited to 'files/.tmux.conf')
| -rw-r--r-- | files/.tmux.conf | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/files/.tmux.conf b/files/.tmux.conf index ed312a0..07268a8 100644 --- a/files/.tmux.conf +++ b/files/.tmux.conf @@ -42,8 +42,12 @@ bind '$' command-prompt -p "(rename-session '#S')" "rename-session '%%'" bind , command-prompt -p "(rename-window '#W')" "rename-window '%%'" # Move windows -bind P swap-window -t -1\; select-window -t -1 -bind N swap-window -t +1\; select-window -t +1 +if-shell -b '[ "$(echo "$TMUX_VERSION < 3.0" | bc)" = 1 ]' " \ + bind P swap-window -t -1; \ + bind N swap-window -t +1" +if-shell -b '[ "$(echo "$TMUX_VERSION >= 3.0" | bc)" = 1 ]' " \ + bind P { swap-window -t -1; select-window -t -1}; \ + bind N { swap-window -t +1; select-window -t +1}" #bind \ split-window -h -c '#{pane_current_path}' |
