Skip to content

Instantly share code, notes, and snippets.

@stinkymatt
Created February 6, 2012 03:22
Show Gist options
  • Save stinkymatt/1749333 to your computer and use it in GitHub Desktop.
Save stinkymatt/1749333 to your computer and use it in GitHub Desktop.
bash titlebar
TITLEBAR='\[\033]2;\u@\h:\w\007\]'
PS1="${TITLEBAR}(\!) \t \$ "
@stinkymatt
Copy link
Author

A useful shell prompt setting that configures most shell title bars to show the current working directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment