Added my own theme, based on gentoo's prompt

pull/181/head
Roderik van der Veer 2012-12-30 15:49:32 +01:00
parent 2813930e04
commit 3fc4bfee47
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
#!/usr/bin/env bash
export GIT_PS1_SHOWDIRTYSTATE=true
export GIT_PS1_SHOWUNTRACKEDFILES=true
export GIT_PS1_SHOWSTASHSTATE=true
export PROMPT_DIRTRIM=3
function prompt_command() {
if [[ ${EUID} == 0 ]] ; then
PS1="[\t]${yellow}[${red}\u@\h ${green}\w${yellow}]${red}$(__git_ps1 "(%s)")${normal}\\$ "
else
PS1="[\t]${yellow}[${cyan}\u@\h ${green}\w${yellow}]${red}$(__git_ps1 "(%s)")${normal}\\$ "
fi
}
PROMPT_COMMAND=prompt_command;