From 065122564a34bd7f11ef4b98f45a5aa81d7605a5 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 23 Apr 2022 11:36:09 +0200 Subject: [PATCH] Move username colour in prompt to appropriate place --- .config/zsh/themes/prompt.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/zsh/themes/prompt.zsh b/.config/zsh/themes/prompt.zsh index b29ffee..3654061 100644 --- a/.config/zsh/themes/prompt.zsh +++ b/.config/zsh/themes/prompt.zsh @@ -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" }