Skip to content

Instantly share code, notes, and snippets.

View roychri's full-sized avatar

Christian Roy roychri

View GitHub Profile
@roychri
roychri / prompt.sh
Created November 2, 2012 20:54 — forked from tobiassjosten/prompt.sh
Megred in most of the forks made my everyone up to now. Speed, keep existing PROMPT_COMMAND, add titlebar information, staged-unstaged, cleaning up
# Configure colors, if available.
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
c_reset='\[\e[0m\]'
c_user='\[\e[0;32m\]'
c_path='\[\e[1;34m\]'
c_git_clean='\[\e[0;37m\]'
c_git_staged='\[\e[0;32m\]'
c_git_unstaged='\[\e[0;31m\]'
else
c_reset=