diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2018-08-10 23:12:49 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2018-08-10 23:12:49 +0300 |
commit | 2700cb46f50ecb21ad9d1f3b25def5c23e0b2d1e (patch) | |
tree | 4443b91a7d6ead616bd59332fe8eaf355a0419c2 /powerlevel9k.zsh-theme | |
parent | 7a1319c2d98da16e0b2bd32dd43f9660a74ed8d7 (diff) | |
parent | 3fb0383956d78d898520d58b99e1814a6670f140 (diff) |
Merge remote-tracking branch 'docwhat/pr/sudo-check' into prepare_066
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index d0d5e355..a7a3de35 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -665,7 +665,7 @@ prompt_user() { "FOREGROUND_COLOR" "yellow" "VISUAL_IDENTIFIER" "ROOT_ICON" ) - elif sudo -n true 2>/dev/null; then + elif [[ -n "$SUDO_COMMAND" ]]; then user_state=( "STATE" "SUDO" "CONTENT" "${POWERLEVEL9K_USER_TEMPLATE}" |