Add Alt+esc to close a pane too
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
echo "Add Alt+Enter and Alt+Shift+Enter split keybindings to tmux"
|
||||
echo "Add Alt+Enter split and Alt+Escape close keybindings to tmux"
|
||||
|
||||
tmux_config="$HOME/.config/tmux/tmux.conf"
|
||||
|
||||
@@ -15,6 +15,11 @@ if [[ -f $tmux_config ]]; then
|
||||
changed=1
|
||||
fi
|
||||
|
||||
if ! grep -qxF 'bind -n M-Escape kill-pane' "$tmux_config"; then
|
||||
printf 'bind -n M-Escape kill-pane\n' >>"$tmux_config"
|
||||
changed=1
|
||||
fi
|
||||
|
||||
if (( changed )); then
|
||||
omarchy-restart-tmux
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user