diff --git a/.tmux.conf b/.tmux.conf --- 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 +}