Unbind ctrl+shift+page_up/down in Ghostty config so it doesn't interfere with tmux keybindings (#4645)

* Unbind ctrl+shift+page_up/down in Ghostty config

* Add guard clause
This commit is contained in:
Pierre Olivier Martel authored and GitHub committed 2026-02-19 07:53:03 +01:00
1 parent 0feb35a436
commit 055d9285b1
2 files changed
+7

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
echo "Unbind ctrl+shift+page_up/page_down in Ghostty so it doesn't interfere with tmux keybindings"
if [[ -f ~/.config/ghostty/config ]] && ! grep -q "keybind = ctrl+shift+page_up=" ~/.config/ghostty/config; then
sed -i '/# Keyboard bindings/a\keybind = ctrl+shift+page_up=unbind\nkeybind = ctrl+shift+page_down=unbind' ~/.config/ghostty/config
fi