1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-09-24 20:30:44 +00:00

Fixes issue #619

Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
This commit is contained in:
Hal Gentz 2017-09-28 22:07:37 -06:00
parent 386a39671f
commit f996d2d6ed
No known key found for this signature in database
GPG key ID: CFABDDBFDA0DD24B

View file

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