fbf4a78acfd9ad7b96e8add7990d871ba50b866e
- Author
- Marc Cornellà <marc.cornella@live.com>
- Committer
- ncanceill <nicolas.canceill@ens-cachan.org>
- Date
Message
Show user prompt in gnzh theme regardless of UID
Fixes #2008.
Diff
1diff --git a/themes/gnzh.zsh-theme b/themes/gnzh.zsh-theme
2index 33f187bc6cd42770ae74329e769128c472b300e7..0519fbefb4150397be44d164cb6c93edcc8d9470 100644
3--- a/themes/gnzh.zsh-theme
4+++ b/themes/gnzh.zsh-theme
5@@ -14,11 +14,11 @@ eval PR_NO_COLOR="%{$terminfo[sgr0]%}"
6 eval PR_BOLD="%{$terminfo[bold]%}"
7
8 # Check the UID
9-if [[ $UID -ge 1000 ]]; then # normal user
10+if [[ $UID -ne 0 ]]; then # normal user
11 eval PR_USER='${PR_GREEN}%n${PR_NO_COLOR}'
12 eval PR_USER_OP='${PR_GREEN}%#${PR_NO_COLOR}'
13 local PR_PROMPT='$PR_NO_COLOR➤ $PR_NO_COLOR'
14-elif [[ $UID -eq 0 ]]; then # root
15+else # root
16 eval PR_USER='${PR_RED}%n${PR_NO_COLOR}'
17 eval PR_USER_OP='${PR_RED}%#${PR_NO_COLOR}'
18 local PR_PROMPT='$PR_RED➤ $PR_NO_COLOR'