Skip to content

Instantly share code, notes, and snippets.

@prasanthj
Last active October 11, 2015 15:48
Show Gist options
  • Save prasanthj/3882592 to your computer and use it in GitHub Desktop.
Save prasanthj/3882592 to your computer and use it in GitHub Desktop.
Console color and Bash prompt login@hostname color
#console colors
export CLICOLOR=1
export LSCOLORS=GaFxCxDxBxegedabagacad
# Custom bash prompt via kirsle.net/wizards/ps1.html
export PS1="\[$(tput bold)\]\[$(tput setaf 3)\][\[$(tput setaf 2)\]\u\[$(tput setaf 1)\]@\[$(tput setaf 6)\]\h \[$(tput setaf 5)\]\W\[$(tput setaf 3)\]\$(__git_ps1)]$ \[$(tput sgr0)\]"
# git completion
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
source ~/.git-prompt.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment