aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorBen Hilburn <bhilburn@gmail.com>2017-02-14 16:58:40 +0300
committerBen Hilburn <bhilburn@gmail.com>2017-02-14 16:58:40 +0300
commitc65e3217b5fcecf84773c0c9a8a5805a9a97d812 (patch)
tree5d28fd627b96b7fdbe6ebcf3522eb3bed9ee3527 /powerlevel9k.zsh-theme
parent6512796afe15cac86ab52972f582b32fd769edac (diff)
context: fixing conditionals in for always showing $USER
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 cf6ad5df..5960dbe8 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -550,7 +550,7 @@ prompt_context() {
local content=""
- if [[ "POWERLEVEL9K_ALWAYS_SHOW_CONTEXT" == true ]] || [[ "$USER" != "$DEFAULT_USER" ]] || [[ -n "$SSH_CLIENT" || -n "$SSH_TTY" ]]; then
+ if [[ "$POWERLEVEL9K_ALWAYS_SHOW_CONTEXT" == true ]] || [[ "$USER" != "$DEFAULT_USER" ]] || [[ -n "$SSH_CLIENT" || -n "$SSH_TTY" ]]; then
if [[ $(print -P "%#") == '#' ]]; then
current_state="ROOT"
@@ -558,7 +558,7 @@ prompt_context() {
content="$USER@${POWERLEVEL9K_CONTEXT_HOST_DEPTH}"
- elif [[ "POWERLEVEL9K_ALWAYS_SHOW_USER" == true ]]; then
+ elif [[ "$POWERLEVEL9K_ALWAYS_SHOW_USER" == true ]]; then
content="$USER"
else
return