Fixes issue #619

Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
pull/22/head
Hal Gentz 7 years ago
parent 386a39671f
commit f996d2d6ed
No known key found for this signature in database
GPG Key ID: CFABDDBFDA0DD24B

@ -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"

Loading…
Cancel
Save