Don't use display-popup in tmux 3.2 and lower
This commit is contained in:
parent
8c6231616c
commit
60e95c36a6
18
tmux.conf
18
tmux.conf
@ -62,14 +62,16 @@ 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"'
|
||||||
|
|
||||||
# Open a popup with running the default shell
|
if -b '[ "$TMUX_VERSION" >= 3.2 ]' {
|
||||||
bind T display-popup -S fg=#54546D -b rounded -d '#{pane_current_path}' -E $SHELL
|
# Open a popup with running the default shell
|
||||||
# Open a popup with session creator/switcher
|
bind T display-popup -S fg=#54546D -b rounded -d '#{pane_current_path}' -E $SHELL
|
||||||
bind S display-popup -B -w 60 -h 10 -E '~/.config/tmux/session.sh'
|
# Open a popup with session creator/switcher
|
||||||
# Open a popup with project selector
|
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 with project selector
|
||||||
# Open a popup to pick an interpreter then launch it
|
bind P display-popup -B -w 60 -h 10 -E '~/.config/tmux/project.sh'
|
||||||
bind I display-popup -S fg=#54546D -b rounded -d '#{pane_current_path}' -E '$SHELL -i ~/.config/tmux/interpreter.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
|
# Restore old next/previous window bindings
|
||||||
bind C-n next-window
|
bind C-n next-window
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user