diff options
Diffstat (limited to 'common.nix')
-rw-r--r-- | common.nix | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -94,9 +94,11 @@ in # programs programs.bash.promptInit = '' - PROMPT_COLOR="1;31m" - [ "$UID" -ne 0 ] && + if [ "$UID" -ne 0 ]; then PROMPT_COLOR="1;32m" + else + PROMPT_COLOR="1;31m" + fi PS1="\[\033[$PROMPT_COLOR\][\[\e]0;\u@\h: \w\a\]\u@\h:\w]\\$\[\033[0m\] " ''; |