Created
July 8, 2014 12:04
-
-
Save maracuja/6b17d5d1f9815c74dae7 to your computer and use it in GitHub Desktop.
my hacked together .profile prompt settings for git
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
DEFAULT="[37;40m" | |
PINK="[35;40m" | |
GREEN="[32;40m" | |
ORANGE="[33;40m" | |
alias __git_ps1="git branch 2>/dev/null | grep '*' | sed 's/* \(.*\)/\1/'" | |
export PS1='\n\e${PINK}\u \e${DEFAULT}at \e${ORANGE}\h\ | |
\e${DEFAULT}in \e${GREEN}\w \e${DEFAULT}on \e${PINK}$(__git_ps1) $(echo `git status` | grep "nothing to commit" > /dev/null 2>&1; if [ "$?" -eq "0" ]; then echo ""; else echo "!"; fi) \e${DEFAULT} \n~ 🍔 ' | |
if [ -f ~/.git-completion.bash ]; then | |
. ~/.git-completion.bash | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I say 'mine' i copied it from somewhere