Files
oh-my-bash/themes/roderik/roderik.theme.sh

18 lines
533 B
Bash
Raw Normal View History

#! bash oh-my-bash.module
export GIT_PS1_SHOWDIRTYSTATE=true
export GIT_PS1_SHOWUNTRACKEDFILES=true
export GIT_PS1_SHOWSTASHSTATE=true
export PROMPT_DIRTRIM=3
function _omb_theme_PROMPT_COMMAND() {
if [[ ${EUID} == 0 ]] ; then
PS1="[$(clock_prompt)]${yellow}[${red}\u@\h ${green}\w${yellow}]${red}$(__git_ps1 "(%s)")${normal}\\$ "
else
PS1="[$(clock_prompt)]${yellow}[${cyan}\u@\h ${green}\w${yellow}]${red}$(__git_ps1 "(%s)")${normal}\\$ "
fi
}
_omb_util_add_prompt_command _omb_theme_PROMPT_COMMAND