Skip to content

Instantly share code, notes, and snippets.

@akashjobanputra
Last active September 2, 2018 17:35
Show Gist options
  • Save akashjobanputra/7ce2570f924db8adf7d8b2ed15e50bb6 to your computer and use it in GitHub Desktop.
Save akashjobanputra/7ce2570f924db8adf7d8b2ed15e50bb6 to your computer and use it in GitHub Desktop.
my bash prompt with git branch
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\] '
@akashjobanputra
Copy link
Author

akashjobanputra commented Sep 2, 2018

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.

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