Merge pull request #181 from roderik/theme/roderik
Added my own theme, based on gentoo's promptpull/219/merge
commit
695e43636b
|
|
@ -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;
|
||||
Loading…
Reference in New Issue