Version-gate tmux popup (>= 3.2)

Fri, 10 Nov 2023 01:31:38 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Fri, 10 Nov 2023 01:31:38 -0600
changeset 1134
fe6ccd1afb11
parent 1133
cb91318a522e
child 1135
7a17b7825b5f

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
+}
 

mercurial