Fri, 10 Nov 2023 01:31:38 -0600
Version-gate tmux popup (>= 3.2)
.tmux.conf | file | annotate | diff | comparison | revisions |
--- a/.tmux.conf +++ b/.tmux.conf @@ -40,11 +40,16 @@ set -g set-titles-string "#h(#S)" source-file ~/.tmux/screen-keys.conf source-file ~/.tmux/vim-keys.conf -source-file ~/.tmux/popup.conf + +if-shell "tmux -V | awk '{exit !($2 >= \"3.2\")}'" { + source-file ~/.tmux/popup.conf +} bind S choose-session bind @ choose-window 'join-pane -h -s "%%"' bind K kill-pane -if-shell 'test -e ~/.tmux.conf.local' "source ~/.tmux.conf.local" +if-shell 'test -e ~/.tmux.conf.local' { + source ~/.tmux.conf.local +}