Created
October 17, 2018 09:17
-
-
Save 2yk/d0b3a68ef03fecd60ee441aecd52034a to your computer and use it in GitHub Desktop.
My base prompt setup => local:<Dir name>(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
git_branch() { | |
git branch 2> /dev/null | sed -e 's/* \(.*\)/(\1)/' | |
} | |
PS1="\[\033[01;32m\]local\[\033[00m\]:\[\033[01;34m\]\W\[\033[33m\]\$(git_branch)\[\033[00m\]$ " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update =>