Skip to content

Instantly share code, notes, and snippets.

@precious
Created January 9, 2013 03:16
Show Gist options
  • Save precious/4490278 to your computer and use it in GitHub Desktop.
Save precious/4490278 to your computer and use it in GitHub Desktop.
delim(){
if [ -n "`/home/precious/programming/c/git_branch/git-br`" ]; then
echo '|'
fi
}
export PS1='\[\e[0;36m\]$?\[\e[0m\]|\[\e[0;31m\]`/home/precious/programming/c/git_branch/git-br`\[\e[0m\]$(delim)\[\e[0;35m\]\u\[\e[0m\]:\[\e[0;34m\]\w\[\e[0m\]\$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment