Move username colour in prompt to appropriate place
This commit is contained in:
parent
50f2939827
commit
065122564a
@ -19,7 +19,7 @@ zsh_theme_colours[inactive]="236" # grey
|
||||
# Show username if it is not the default user
|
||||
local showuser=""
|
||||
if [[ "${USERNAME}" != "${DEFAULT_USER}" ]] && [[ -n "${USERNAME}" ]]; then
|
||||
showuser="%n "
|
||||
showuser="%B%F{${zsh_theme_colours[prompt]}}%n%f%b "
|
||||
fi
|
||||
|
||||
autoload -Uz vcs_info
|
||||
@ -127,7 +127,7 @@ function _shrunkpwd()
|
||||
|
||||
setopt PROMPT_SUBST
|
||||
|
||||
PROMPT="%B%F{${zsh_theme_colours[prompt]}}${showuser}%b"'${vcs_info_msg_0_}'"%B%F{${zsh_theme_colours[prompt]}}%#%f%b "
|
||||
PROMPT="${showuser}"'${vcs_info_msg_0_}'"%B%F{${zsh_theme_colours[prompt]}}%#%f%b "
|
||||
RPROMPT="%F{${zsh_theme_colours[minor]}}%(?..[%B%F{${zsh_theme_colours[highlight]}}%?%b%F{${zsh_theme_colours[minor]}}] )"'$(_shrunkpwd)'"%f"
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user