Don't use display-popup in tmux 3.2 and lower
This commit is contained in:
parent
8c6231616c
commit
60e95c36a6
@ -62,6 +62,7 @@ set -ga terminal-overrides 'xterm*:smxx=\E[9m'
|
||||
if -b '[ "`uname`" = "Darwin" ]' \
|
||||
'set -g default-command "reattach-to-user-namespace -l $SHELL"'
|
||||
|
||||
if -b '[ "$TMUX_VERSION" >= 3.2 ]' {
|
||||
# Open a popup with running the default shell
|
||||
bind T display-popup -S fg=#54546D -b rounded -d '#{pane_current_path}' -E $SHELL
|
||||
# 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'
|
||||
# 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'
|
||||
}
|
||||
|
||||
# Restore old next/previous window bindings
|
||||
bind C-n next-window
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user