Skip to content

Instantly share code, notes, and snippets.

@jennynz
Created July 8, 2019 21:38
Show Gist options
  • Save jennynz/903a6914a2606a20a5bcb8cad71b8cd5 to your computer and use it in GitHub Desktop.
Save jennynz/903a6914a2606a20a5bcb8cad71b8cd5 to your computer and use it in GitHub Desktop.
A nicer bash prompt with working directory in blue and git branch in yellow.
PS1="\[\033[36m\]\w\[\033[m\]\[\033[32m\] \[\033[33;1m\](\$(git branch 2>/dev/null | grep '^*' | cut -c 3-))\[\033[m\]\] \$ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment