Last active
September 2, 2018 17:35
-
-
Save akashjobanputra/7ce2570f924db8adf7d8b2ed15e50bb6 to your computer and use it in GitHub Desktop.
my bash prompt with git branch
This file contains hidden or 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
export PS1='\[\033[1;3;36m\]\u\[\033[0;3m\]:\[\033[1;3;32m\]\W\[\033[0m\]\[\033[1;3;33m\]$(declare -F __git_ps1 &>/dev/null && __git_ps1 ":%s")\[\033[0m\]\[\033[1;3;31m\]$\[\033[0m\] ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To use this, copy the
export
statement from above. And paste it in your .bashrc file.Open a new terminal or
source ~/.bashrc
to see the change.