Skip to content

Instantly share code, notes, and snippets.

@rasshofer
Created November 6, 2014 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rasshofer/42265348c59e4695b696 to your computer and use it in GitHub Desktop.
Save rasshofer/42265348c59e4695b696 to your computer and use it in GitHub Desktop.
My bash prompt (PS1)
export PS1="\[$(tput bold)\]\[$(tput setaf 6)\]\u\[$(tput setaf 7)\]@\[$(tput setaf 2)\]\h \[$(tput setaf 3)\]\w\[$(tput setaf 1)\]\$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/') \[$(tput setaf 7)\]\\$ \[$(tput sgr0)\]"
@rasshofer
Copy link
Author

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