summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2021-06-26 14:53:29 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2021-06-26 14:53:29 +0100
commit26831afb5ae86c042d859d1b5c9e039dfe12a093 (patch)
tree32a2708703e03a8eb50f0405681fccbeb0972453 /zsh
parentbb5ca94a225ec28b3f9130e0bf7d3a404bbc3ad4 (diff)
zsh: Show nonzero exit statuses in ${PS1}
Diffstat (limited to 'zsh')
-rw-r--r--zsh/rc2
1 files changed, 1 insertions, 1 deletions
diff --git a/zsh/rc b/zsh/rc
index 4b49059..3170617 100644
--- a/zsh/rc
+++ b/zsh/rc
@@ -21,7 +21,7 @@ zstyle ':completion:*' users root ${USER}
HISTFILE=${XDG_CACHE_HOME}/zsh/history
HISTSIZE=65535
-PS1="%n@%m:%~ %# "
+PS1='%(?..%F{#ff0000}%?%f )%n@%m:%~ %# '
SAVEHIST=${HISTSIZE}
WORDCHARS=${WORDCHARS/\//}