-
-
Save dundee/944044 to your computer and use it in GitHub Desktop.
Shows actual git branch on command prompt
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
export PS1="$PS1\$(\ | |
export GIT_BRANCH=\"\$(git branch --no-color 2>/dev/null | grep '*' | cut -d\" \" -f2-)\"; \ | |
if [ -n \"\$GIT_BRANCH\" ] ; then \ | |
echo -en \"\[\033[01;33m\]\"\$GIT_BRANCH \"> \[\033[00m\]\"; \ | |
fi \ | |
)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Super, ta zmena pomohla i me.