aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-07-29 15:45:22 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-07-29 15:45:22 +0300
commit86c52722d958d264c0d4deb2f209b7b1638279ee (patch)
tree7ecbbe47cc11fc306b728a20994fd0afe4fef143
parentba39eb3421f7aa955a24516040006e3a22254528 (diff)
specify different context template for root
-rw-r--r--config/p10k-lean.zsh4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/p10k-lean.zsh b/config/p10k-lean.zsh
index dad46c28..b34579e5 100644
--- a/config/p10k-lean.zsh
+++ b/config/p10k-lean.zsh
@@ -389,10 +389,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.