Use \w instead of $PWD for title bar

This commit is contained in:
Patrick Reynolds
2025-01-04 19:26:14 -05:00
committed by GitHub
parent 0306c592a7
commit 5fa9e88482

View File

@ -141,7 +141,7 @@ function __ghostty_precmd() {
# Command and working directory # Command and working directory
# shellcheck disable=SC2016 # shellcheck disable=SC2016
PS0=$PS0'$(__ghostty_get_current_command)' PS0=$PS0'$(__ghostty_get_current_command)'
PS1=$PS1'\[\e]2;$PWD\a\]' PS1=$PS1'\[\e]2;\w\a\]'
fi fi
fi fi