summaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorFelicia Hummel <felicia@partkeepr.com>2017-01-26 15:01:17 +0300
committerBen Hilburn <bhilburn@gmail.com>2017-02-19 06:25:33 +0300
commit554f8ed8ee19b6cc34d008ab4b691fad5da376b5 (patch)
tree80dd5df68493cf4b4d62a6b18f282ca39e4a2c44 /powerlevel9k.zsh-theme
parent95344af32706a35e2da42eefbd3d7f4d5d527122 (diff)
Added support for customizable context segment
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme4
1 files changed, 2 insertions, 2 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 020b5c96..5fab0190 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -539,7 +539,7 @@ prompt_public_ip() {
# Note that if $DEFAULT_USER is not set, this prompt segment will always print
set_default POWERLEVEL9K_ALWAYS_SHOW_CONTEXT false
set_default POWERLEVEL9K_ALWAYS_SHOW_USER false
-set_default POWERLEVEL9K_CONTEXT_HOST_DEPTH "%m"
+set_default POWERLEVEL9K_CONTEXT_TEMPLATE "%n@%m"
prompt_context() {
local current_state="DEFAULT"
typeset -AH context_states
@@ -556,7 +556,7 @@ prompt_context() {
current_state="ROOT"
fi
- content="$USER@${POWERLEVEL9K_CONTEXT_HOST_DEPTH}"
+ content="${POWERLEVEL9K_CONTEXT_TEMPLATE}"
elif [[ "$POWERLEVEL9K_ALWAYS_SHOW_USER" == true ]]; then
content="$USER"