diff --git a/pure.zsh b/pure.zsh index 820094c..59cd13b 100644 --- a/pure.zsh +++ b/pure.zsh @@ -117,6 +117,9 @@ prompt_pure_setup() { # show username@host if logged in through SSH [[ "$SSH_CONNECTION" != '' ]] && prompt_pure_username='%n@%m ' + # show username@host if root, with username in white + [[ $UID -eq 0 ]] && prompt_pure_username='%F{white}%n%F{242}@%m ' + # prompt turns red if the previous command didn't exit with 0 PROMPT='%(?.%F{magenta}.%F{red})❯%f ' }