Don't use display-popup in tmux 3.2 and lower

This commit is contained in:
Kenneth Benzie 2025-11-09 20:08:05 +00:00
parent 8c6231616c
commit 60e95c36a6

View File

@ -62,6 +62,7 @@ set -ga terminal-overrides 'xterm*:smxx=\E[9m'
if -b '[ "`uname`" = "Darwin" ]' \ if -b '[ "`uname`" = "Darwin" ]' \
'set -g default-command "reattach-to-user-namespace -l $SHELL"' 'set -g default-command "reattach-to-user-namespace -l $SHELL"'
if -b '[ "$TMUX_VERSION" >= 3.2 ]' {
# Open a popup with running the default shell # Open a popup with running the default shell
bind T display-popup -S fg=#54546D -b rounded -d '#{pane_current_path}' -E $SHELL bind T display-popup -S fg=#54546D -b rounded -d '#{pane_current_path}' -E $SHELL
# Open a popup with session creator/switcher # Open a popup with session creator/switcher
@ -70,6 +71,7 @@ bind S display-popup -B -w 60 -h 10 -E '~/.config/tmux/session.sh'
bind P display-popup -B -w 60 -h 10 -E '~/.config/tmux/project.sh' bind P display-popup -B -w 60 -h 10 -E '~/.config/tmux/project.sh'
# Open a popup to pick an interpreter then launch it # Open a popup to pick an interpreter then launch it
bind I display-popup -S fg=#54546D -b rounded -d '#{pane_current_path}' -E '$SHELL -i ~/.config/tmux/interpreter.sh' bind I display-popup -S fg=#54546D -b rounded -d '#{pane_current_path}' -E '$SHELL -i ~/.config/tmux/interpreter.sh'
}
# Restore old next/previous window bindings # Restore old next/previous window bindings
bind C-n next-window bind C-n next-window