aboutsummaryrefslogtreecommitdiff
path: root/config/p10k-lean.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-11-30 19:34:12 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-11-30 19:34:12 +0300
commit37fa37c039aa07a07dc168404fcc0924a5e4c1f4 (patch)
treec361bc18a5c2fd48c574289c2f5dccd9564f14c3 /config/p10k-lean.zsh
parentdc4ca306000d244d3895117e5d5bba225e960977 (diff)
make it easier to edit context segment settings in generated configs
Diffstat (limited to 'config/p10k-lean.zsh')
-rw-r--r--config/p10k-lean.zsh14
1 files changed, 9 insertions, 5 deletions
diff --git a/config/p10k-lean.zsh b/config/p10k-lean.zsh
index 08834faf..8d701106 100644
--- a/config/p10k-lean.zsh
+++ b/config/p10k-lean.zsh
@@ -528,15 +528,19 @@
# typeset -g POWERLEVEL9K_LOAD_VISUAL_IDENTIFIER_EXPANSION='⭐'
##################################[ context: user@hostname ]##################################
- # Default context color.
- typeset -g POWERLEVEL9K_CONTEXT_FOREGROUND=180
- # Default context format: %n is username, %m is hostname.
- typeset -g POWERLEVEL9K_CONTEXT_TEMPLATE='%n@%m'
-
# Context color when running with privileges.
typeset -g POWERLEVEL9K_CONTEXT_ROOT_FOREGROUND=178
+ # Context color in SSH without privileges.
+ typeset -g POWERLEVEL9K_CONTEXT_{REMOTE,REMOTE_SUDO}_FOREGROUND=180
+ # Default context color (no privileges, no SSH).
+ typeset -g POWERLEVEL9K_CONTEXT_FOREGROUND=180
+
# Context format when running with privileges: bold user@hostname.
typeset -g POWERLEVEL9K_CONTEXT_ROOT_TEMPLATE='%B%n@%m'
+ # Context format when in SSH without privileges: user@hostname.
+ typeset -g POWERLEVEL9K_CONTEXT_{REMOTE,REMOTE_SUDO}_TEMPLATE='%n@%m'
+ # Default context format (no privileges, no SSH): user@hostname.
+ typeset -g POWERLEVEL9K_CONTEXT_TEMPLATE='%n@%m'
# Don't show context unless running with privileges or in SSH.
# Tip: Remove the next line to always show context.