themes/roderik: Fix styles

This commit is contained in:
Koichi Murase
2023-10-10 12:24:16 +09:00
parent 0a7a083308
commit 51e8b97dca

View File

@ -1,17 +1,20 @@
#! bash oh-my-bash.module #! bash oh-my-bash.module
export GIT_PS1_SHOWDIRTYSTATE=true GIT_PS1_SHOWDIRTYSTATE=true
export GIT_PS1_SHOWUNTRACKEDFILES=true GIT_PS1_SHOWUNTRACKEDFILES=true
export GIT_PS1_SHOWSTASHSTATE=true GIT_PS1_SHOWSTASHSTATE=true
export PROMPT_DIRTRIM=${PROMPT_DIRTRIM:-3} export PROMPT_DIRTRIM=${PROMPT_DIRTRIM:-3}
function _omb_theme_PROMPT_COMMAND() { function _omb_theme_PROMPT_COMMAND {
if [[ ${EUID} == 0 ]] ; then local color=$_omb_prompt_teal
PS1="[$(clock_prompt)]${_omb_prompt_olive}[${_omb_prompt_brown}\u@\h ${_omb_prompt_green}\w${_omb_prompt_olive}]${_omb_prompt_brown}$(__git_ps1 "(%s)")${_omb_prompt_normal}\\$ " if ((EUID == 0)); then
else color=$_omb_prompt_brown
PS1="[$(clock_prompt)]${_omb_prompt_olive}[${_omb_prompt_teal}\u@\h ${_omb_prompt_green}\w${_omb_prompt_olive}]${_omb_prompt_brown}$(__git_ps1 "(%s)")${_omb_prompt_normal}\\$ "
fi fi
PS1="[$(clock_prompt)]"
PS1+="${_omb_prompt_olive}[${color}\u@\h ${_omb_prompt_green}\w${_omb_prompt_olive}]"
PS1+="${_omb_prompt_brown}$(__git_ps1 "(%s)")${_omb_prompt_normal}\\$ "
} }
_omb_util_add_prompt_command _omb_theme_PROMPT_COMMAND _omb_util_add_prompt_command _omb_theme_PROMPT_COMMAND