Skip to content

Instantly share code, notes, and snippets.

@eval
Created July 1, 2011 12:56
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 eval/1058491 to your computer and use it in GitHub Desktop.
Save eval/1058491 to your computer and use it in GitHub Desktop.
YELLOW='\[\e[1;33m\]'
BLUE='\[\e[1;36m\]'
RED='\[\e[1;31m\]'
WHITE='\[\e[1;37m\]'
NC='\[\033[00m\]' #'\e[0m' # No Color
function __tc_git_ps1 {
if [[ $(git rev-parse --show-cdup) == "" ]]; then
echo "${YELLOW}\$(__git_ps1 '(%s)')${NC}"
else
echo ""
fi
}
PS1="${WHITE}\t ${BLUE}\w${NC}\n$(__tc_git_ps1)\$ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment