Skip to content

Instantly share code, notes, and snippets.

@andrei-cacio
Last active May 19, 2016 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrei-cacio/e9cb067cb3b07273e8b4182f6c7785ba to your computer and use it in GitHub Desktop.
Save andrei-cacio/e9cb067cb3b07273e8b4182f6c7785ba to your computer and use it in GitHub Desktop.
pimp-my-bash-console1
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
BLACK=$(tput setaf 0)
RED=$(tput setaf 1)
GREEN=$(tput setaf 2)
YELLOW=$(tput setaf 3)
LIME_YELLOW=$(tput setaf 190)
POWDER_BLUE=$(tput setaf 153)
BLUE=$(tput setaf 4)
MAGENTA=$(tput setaf 5)
CYAN=$(tput setaf 6)
WHITE=$(tput setaf 7)
BRIGHT=$(tput bold)
NORMAL=$(tput sgr0)
BLINK=$(tput blink)
REVERSE=$(tput smso)
UNDERLINE=$(tput smul)
export PS1="\[${WHITE}\]\u:\[${BLUE}\]\W\[${NORMAL}\] \$(parse_git_branch)\$ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment