aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorChristo Kotze <onaforeignshore@hotmail.co.uk>2017-04-27 21:16:20 +0300
committerChristo Kotze <onaforeignshore@hotmail.co.uk>2017-04-27 21:16:20 +0300
commit94ff40d2d1823f805f58759b1420e6fe15e28001 (patch)
tree4379b5064c9deb8acf92172b4a944b4107e6327c /powerlevel9k.zsh-theme
parent59e64c90512f4c67340e4baf37f0a22d41f765cc (diff)
Removed POWERLEVEL9K_ALWAYS_SHOW_CONTEXT
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 c791a845..0ae046d5 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -574,7 +574,7 @@ set_default POWERLEVEL9K_USER_TEMPLATE "%n"
prompt_user() {
local current_state="DEFAULT"
typeset -AH user_state
- if [[ "$POWERLEVEL9K_ALWAYS_SHOW_CONTEXT" == true ]] || [[ "$USER" != "$DEFAULT_USER" ]] || [[ -n "$SSH_CLIENT" || -n "$SSH_TTY" ]]; then
+ if [[ "$POWERLEVEL9K_ALWAYS_SHOW_USER" == true ]] || [[ "$USER" != "$DEFAULT_USER" ]] || [[ -n "$SSH_CLIENT" || -n "$SSH_TTY" ]]; then
if [[ $(print -P "%#") == '#' ]]; then
user_state=(
"STATE" "ROOT"
@@ -583,7 +583,7 @@ prompt_user() {
"FOREGROUND_COLOR" "yellow"
"VISUAL_IDENTIFIER" "ROOT_ICON"
)
- elif [[ "$POWERLEVEL9K_ALWAYS_SHOW_USER" == true ]]; then
+ else
user_state=(
"STATE" "DEFAULT"
"CONTENT" "$USER"