From 742ed29d93f25e081ad49af3747373bfeb3d6d05 Mon Sep 17 00:00:00 2001
From: romkatv <roman.perepelitsa@gmail.com>
Date: Tue, 24 Sep 2019 10:40:50 +0200
Subject: bold user@hostname when root; add a comment explaining how to always
 show user@hostname

---
 config/p10k-classic.zsh | 9 +++++----
 config/p10k-lean.zsh    | 9 +++++----
 2 files changed, 10 insertions(+), 8 deletions(-)

(limited to 'config')

diff --git a/config/p10k-classic.zsh b/config/p10k-classic.zsh
index da478513..2a3eaaef 100644
--- a/config/p10k-classic.zsh
+++ b/config/p10k-classic.zsh
@@ -58,7 +58,7 @@
       rvm                     # ruby version from rvm (https://rvm.io)
       kubecontext             # current kubernetes context (https://kubernetes.io/)
       terraform               # terraform workspace (https://www.terraform.io)
-      context                 # user@host
+      context                 # user@hostname
       nordvpn                 # nordvpn connection status, linux only (https://nordvpn.com/)
       ranger                  # ranger shell (https://github.com/ranger/ranger)
       # vpn_ip                # virtual private network indicator
@@ -481,7 +481,7 @@
   # Custom icon.
   # typeset -g POWERLEVEL9K_LOAD_VISUAL_IDENTIFIER_EXPANSION='⭐'
 
-  ####################################[ context: user@host ]####################################
+  ##################################[ context: user@hostname ]##################################
   # Default context color.
   typeset -g POWERLEVEL9K_CONTEXT_FOREGROUND=180
   # Default context format: %n is username, %m is hostname.
@@ -489,10 +489,11 @@
 
   # Context color when running with privileges.
   typeset -g POWERLEVEL9K_CONTEXT_ROOT_FOREGROUND=178
-  # Context format when running with privileges: %n is username, %m is hostname.
-  typeset -g POWERLEVEL9K_CONTEXT_ROOT_TEMPLATE='%n@%m'
+  # Context format when running with privileges: bold user@hostname.
+  typeset -g POWERLEVEL9K_CONTEXT_ROOT_TEMPLATE='%B%n@%m'
 
   # Don't show context unless running with privileges or in SSH.
+  # Tip: Remove the next line to always show context.
   typeset -g POWERLEVEL9K_CONTEXT_{DEFAULT,SUDO}_{CONTENT,VISUAL_IDENTIFIER}_EXPANSION=
 
   # Custom icon.
diff --git a/config/p10k-lean.zsh b/config/p10k-lean.zsh
index fa69892d..8ff392b6 100644
--- a/config/p10k-lean.zsh
+++ b/config/p10k-lean.zsh
@@ -58,7 +58,7 @@
       rvm                     # ruby version from rvm (https://rvm.io)
       kubecontext             # current kubernetes context (https://kubernetes.io/)
       terraform               # terraform workspace (https://www.terraform.io)
-      context                 # user@host
+      context                 # user@hostname
       nordvpn                 # nordvpn connection status, linux only (https://nordvpn.com/)
       ranger                  # ranger shell (https://github.com/ranger/ranger)
       # vpn_ip                # virtual private network indicator
@@ -460,7 +460,7 @@
   # Custom icon.
   # typeset -g POWERLEVEL9K_LOAD_VISUAL_IDENTIFIER_EXPANSION='⭐'
 
-  ####################################[ context: user@host ]####################################
+  ##################################[ context: user@hostname ]##################################
   # Default context color.
   typeset -g POWERLEVEL9K_CONTEXT_FOREGROUND=180
   # Default context format: %n is username, %m is hostname.
@@ -468,10 +468,11 @@
 
   # Context color when running with privileges.
   typeset -g POWERLEVEL9K_CONTEXT_ROOT_FOREGROUND=178
-  # Context format when running with privileges: %n is username, %m is hostname.
-  typeset -g POWERLEVEL9K_CONTEXT_ROOT_TEMPLATE='%n@%m'
+  # Context format when running with privileges: bold user@hostname.
+  typeset -g POWERLEVEL9K_CONTEXT_ROOT_TEMPLATE='%B%n@%m'
 
   # Don't show context unless running with privileges or in SSH.
+  # Tip: Remove the next line to always show context.
   typeset -g POWERLEVEL9K_CONTEXT_{DEFAULT,SUDO}_{CONTENT,VISUAL_IDENTIFIER}_EXPANSION=
 
   # Custom icon.
-- 
cgit v1.2.3