]> arthur.barton.de Git - ax-zsh.git/blobdiff - themes/axemoji.axzshtheme
Refactor "root prompt" handling, don't show root "logname" by default
[ax-zsh.git] / themes / axemoji.axzshtheme
index ec1237677109de3a8819fe5ac8131e972eef808c..03d610ead41e5112daf488ffc982099f4453064e 100644 (file)
@@ -31,6 +31,8 @@ else
        RPS1="%(?..%{$fg_no_bold[red]%}<%?>%{$reset_color%})"
 fi
 
+axzsh_logname_prompt_functions=($axzsh_logname_prompt_functions axzsh_logname_prompt_root)
+
 # The primary prompt string, printed before a command is read.
 PS1="${system_emoji}${emoji_spacing} $(axzsh_logname_prompt_yn)$(axzsh_hostname_prompt_yn)%B%2~%b"'$(axzsh_vcs_prompt)'"$(axzsh_prompt)"