# HG changeset patch # User Meredith Howard # Date 1699601498 21600 # Node ID fe6ccd1afb11b346ee756d381d4a1707993cb05c # Parent cb91318a522ecafcde10e7db08c22e982f9de1d0 Version-gate tmux popup (>= 3.2) 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 +}