-
-
Save fwindpeak/77cc44bfd23639c2b6281ad125acafd1 to your computer and use it in GitHub Desktop.
PS1
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
| __git_ps1 () | |
| { | |
| local b="$(git symbolic-ref HEAD 2>/dev/null)"; | |
| if [ -n "$b" ]; then | |
| printf " (%s)" "${b##refs/heads/}"; | |
| fi | |
| } | |
| export PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\033[0;36m\]$(__git_ps1)\[\033[0m\]\n\$ ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment