Skip to content

Instantly share code, notes, and snippets.

@jperocho
Last active August 29, 2015 14:04
Show Gist options
  • Save jperocho/60607c55323205c200b1 to your computer and use it in GitHub Desktop.
Save jperocho/60607c55323205c200b1 to your computer and use it in GitHub Desktop.
#!/bin/bash
PATH=/usr/local/git/bin:$PATH
export PATH
source /usr/local/git/contrib/completion/git-prompt.sh
MAGENTA="\[\033[0;35m\]"
PURPLE="\[\033[1;35m\]"
YELLOW="\[\033[1;33m\]"
BLUE="\[\033[34m\]"
LIGHT_GREEN="\[\033[1;32m\]"
LIGHT_GRAY="\[\033[0;37m\]"
CYAN="\[\033[0;36m\]"
GREEN="\[\033[0;32m\]"
APPLE_GREEN="\[\033[1;32m\]"
RED="\[\033[0;31m\]"
LIGHT_RED="\[\033[1;31m\]"
GIT_PS1_SHOWDIRTYSTATE=true
export LS_OPTIONS='--color=auto'
export CLICOLOR='Yes'
export LSCOLORS=gxfxbEaEBxxEhEhBaDaCaD
export PS1=$PURPLE"\n\w"'$(
if [[ "$(git status --porcelain 2>/dev/null)" = *\?\?* ]]
then echo "'$RED'"$(__git_ps1 " (%s *)")
elif [[ $(__git_ps1) =~ \+\)$ ]]
then echo "'$GREEN'"$(__git_ps1 " (%s)")
else echo "'$LIGHT_GRAY'"$(__git_ps1 " (%s)")
fi)'$APPLE_GREEN" \n\u "$LIGHT_GRAY"$ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment