Skip to content

Instantly share code, notes, and snippets.

@ashokgelal
Created November 6, 2011 18:15
Show Gist options
  • Save ashokgelal/1343267 to your computer and use it in GitHub Desktop.
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
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