Skip to content

Instantly share code, notes, and snippets.

@maracuja
Created July 8, 2014 12:04
Show Gist options
  • Save maracuja/6b17d5d1f9815c74dae7 to your computer and use it in GitHub Desktop.
Save maracuja/6b17d5d1f9815c74dae7 to your computer and use it in GitHub Desktop.
my hacked together .profile prompt settings for git
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
@maracuja
Copy link
Author

maracuja commented Jul 8, 2014

I say 'mine' i copied it from somewhere

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