From 06eb194709678f548d5d33432dc544dcf0fe1322 Mon Sep 17 00:00:00 2001 From: Daniel Bauer Date: Sun, 3 Aug 2025 14:56:55 +0200 Subject: [PATCH] update p10k --- dot_p10k.zsh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/dot_p10k.zsh b/dot_p10k.zsh index a0aeafd..21a3153 100644 --- a/dot_p10k.zsh +++ b/dot_p10k.zsh @@ -34,6 +34,7 @@ # =========================[ Line #1 ]========================= # os_icon # os identifier status + context dir # current directory vcs # git status # =========================[ Line #2 ]========================= @@ -86,7 +87,7 @@ gcloud # google cloud cli account and project (https://cloud.google.com/) google_app_cred # google application credentials (https://cloud.google.com/docs/authentication/production) toolbox # toolbox name (https://github.com/containers/toolbox) - context # user@hostname + #context # user@hostname nordvpn # nordvpn connection status, linux only (https://nordvpn.com/) ranger # ranger shell (https://github.com/ranger/ranger) yazi # yazi shell (https://github.com/sxyazi/yazi) @@ -935,12 +936,13 @@ # Default context color (no privileges, no SSH). typeset -g POWERLEVEL9K_CONTEXT_FOREGROUND=180 + typeset -g POWERLEVEL9K_CONTEXT_REMOTE_SUDO_TEMPLATE='%B%n@%m' # 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' + typeset -g POWERLEVEL9K_CONTEXT_REMOTE_TEMPLATE='%n@%m' # Default context format (no privileges, no SSH): user@hostname. - typeset -g POWERLEVEL9K_CONTEXT_TEMPLATE='%n@%m' + typeset -g POWERLEVEL9K_CONTEXT_TEMPLATE='%n' + typeset -g POWERLEVEL9K_CONTEXT_ROOT_TEMPLATE='%B%n' # Don't show context unless running with privileges or in SSH. # Tip: Remove the next line to always show context.