diff --git a/themes/roderik/roderik.theme.bash b/themes/roderik/roderik.theme.bash new file mode 100644 index 00000000..1c71ab44 --- /dev/null +++ b/themes/roderik/roderik.theme.bash @@ -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;