summaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorHal Gentz <zegentzy@protonmail.com>2017-09-29 07:07:37 +0300
committerHal Gentz <zegentzy@protonmail.com>2017-09-29 07:07:37 +0300
commitf996d2d6ed3aa82f697f8b96afd57eb3b0593875 (patch)
tree54da3840a080dbd9b187f470c99e5e1a5ffafb25 /powerlevel9k.zsh-theme
parent386a39671fc1e9d6420616c72de54e36c4379722 (diff)
Fixes issue #619
Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 7e7b4e11..e3ebf59f 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -570,7 +570,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 ]] || [[ "$(whoami)" != "$DEFAULT_USER" ]] || [[ -n "$SSH_CLIENT" || -n "$SSH_TTY" ]]; then
if [[ $(print -P "%#") == '#' ]]; then
current_state="ROOT"