Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use \w instead of $PWD for title bar (#4656)
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).
- Loading branch information