Fix Kitty terminal cwd detection

This commit is contained in:
David Heinemeier Hansson committed 2026-07-19 09:59:13 -07:00
1 parent 3754c2c031
commit 008f3a2212
3 files changed
+24 -9

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
echo "Enable Kitty cwd lookup through a remote control socket"
kitty_config="$HOME/.config/kitty/kitty.conf"
listen_on='listen_on unix:${XDG_RUNTIME_DIR}/omarchy-kitty-{kitty_pid}'
if [[ -f $kitty_config ]] && ! grep -qE '^[[:space:]]*listen_on[[:space:]]' "$kitty_config"; then
printf '\n# Allow cwd lookup from global keybindings\n%s\n' "$listen_on" >>"$kitty_config"
fi