diff options
author | Marc Cornellà <marc.cornella@live.com> | 2014-06-02 12:42:21 +0200 |
---|---|---|
committer | ncanceill <nicolas.canceill@ens-cachan.org> | 2014-06-06 11:27:53 +0200 |
commit | fbf4a78acfd9ad7b96e8add7990d871ba50b866e (patch) | |
tree | 64f9b32bc1917d8b9311563bae4908237d7b2c97 | |
parent | a9e1d9aa890c18ea3c3250442e7d9de555633237 (diff) | |
download | zsh-fbf4a78acfd9ad7b96e8add7990d871ba50b866e.tar.gz zsh-fbf4a78acfd9ad7b96e8add7990d871ba50b866e.tar.bz2 zsh-fbf4a78acfd9ad7b96e8add7990d871ba50b866e.zip |
Show user prompt in gnzh theme regardless of UID
Fixes #2008.
-rw-r--r-- | themes/gnzh.zsh-theme | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/gnzh.zsh-theme b/themes/gnzh.zsh-theme index 33f187bc6..0519fbefb 100644 --- a/themes/gnzh.zsh-theme +++ b/themes/gnzh.zsh-theme @@ -14,11 +14,11 @@ eval PR_NO_COLOR="%{$terminfo[sgr0]%}" eval PR_BOLD="%{$terminfo[bold]%}" # Check the UID -if [[ $UID -ge 1000 ]]; then # normal user +if [[ $UID -ne 0 ]]; then # normal user eval PR_USER='${PR_GREEN}%n${PR_NO_COLOR}' eval PR_USER_OP='${PR_GREEN}%#${PR_NO_COLOR}' local PR_PROMPT='$PR_NO_COLOR➤ $PR_NO_COLOR' -elif [[ $UID -eq 0 ]]; then # root +else # root eval PR_USER='${PR_RED}%n${PR_NO_COLOR}' eval PR_USER_OP='${PR_RED}%#${PR_NO_COLOR}' local PR_PROMPT='$PR_RED➤ $PR_NO_COLOR' |