aboutsummaryrefslogtreecommitdiff
path: root/zshrc.d/prompt
diff options
context:
space:
mode:
Diffstat (limited to 'zshrc.d/prompt')
-rw-r--r--zshrc.d/prompt3
1 files changed, 3 insertions, 0 deletions
diff --git a/zshrc.d/prompt b/zshrc.d/prompt
index 08e7ad1..72cbf44 100644
--- a/zshrc.d/prompt
+++ b/zshrc.d/prompt
@@ -1,5 +1,8 @@
# vim: ft=zsh
+# Disable default prompt
+command -v prompt >/dev/null && prompt off
+
[ $UID -eq 0 ] && NCOLOR="red" || NCOLOR="green"
PROMPT="%(?..%{$fg_bold[yellow]%}EXIT: %?
)%{$fg_bold[$NCOLOR]%}%n@%m:%{$fg_bold[blue]%}%1~%{$fg_bold[$NCOLOR]%}%(!.#.$)%{$reset_color%} "