Created
July 8, 2019 21:38
-
-
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.
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
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