Created
July 1, 2011 12:56
-
-
Save eval/1058491 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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