Created
November 6, 2011 18:15
-
-
Save ashokgelal/1343267 to your computer and use it in GitHub Desktop.
bash script to automatically set the title of terminal's window + tabs to current path
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
settitle () | |
{ | |
echo -ne "\033]0;${PWD/$HOME/~}\007" | |
} | |
PROMPT_COMMAND=settitle | |
export PROMPT_COMMAND |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment