aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-09-24 11:40:50 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-09-24 11:40:50 +0300
commit742ed29d93f25e081ad49af3747373bfeb3d6d05 (patch)
tree0a7b025fd12b89984eedc5bbe6b020c58d370ecc /config
parent4a4f7e1eef960881661276ab382f1bc5a5bb46a3 (diff)
bold user@hostname when root; add a comment explaining how to always show user@hostname
Diffstat (limited to 'config')
-rw-r--r--config/p10k-classic.zsh9
-rw-r--r--config/p10k-lean.zsh9
2 files changed, 10 insertions, 8 deletions
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.