From c93ad39604269ea5d4142a5f33d2fd004473ae07 Mon Sep 17 00:00:00 2001 From: romkatv Date: Mon, 29 Jul 2019 14:46:08 +0200 Subject: [PATCH] specify different context template for root --- config/p10k-classic.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/p10k-classic.zsh b/config/p10k-classic.zsh index 40046753..ece5b3d9 100644 --- a/config/p10k-classic.zsh +++ b/config/p10k-classic.zsh @@ -398,10 +398,12 @@ fi # typeset -g POWERLEVEL9K_NORDVPN_VISUAL_IDENTIFIER_EXPANSION='⭐' ####################################[ context: user@host ]#################################### - # Context format: user@host. + # Default context format: %n is username, %m is hostname. typeset -g POWERLEVEL9K_CONTEXT_TEMPLATE='%n@%m' # Default context color. typeset -g POWERLEVEL9K_CONTEXT_FOREGROUND=180 + # Context format when running with privileges: %n is username, %m is hostname. + typeset -g POWERLEVEL9K_CONTEXT_ROOT_TEMPLATE='%n@%m' # Context color when running with privileges. typeset -g POWERLEVEL9K_CONTEXT_ROOT_FOREGROUND=227 # Don't show context unless running with privileges on in SSH.