mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00

The `PS1=` variable in the bash integration for the title bar could use [`\w`](https://www.man7.org/linux/man-pages//man1/bash.1.html#PROMPTING) rather than `$PWD` to indicate the working directory. The effect is to replace any leading instance of `$HOME` with a tilde, so `/Users/patrick/code` becomes `~/code`. It also respects [`$PROMPT_DIRTRIM`](https://www.man7.org/linux/man-pages//man1/bash.1.html#PARAMETERS), if any. It looks cleaner to me, especially if there are multiple tabs open. Implements #4643 (cc discussion #4601).