From 26831afb5ae86c042d859d1b5c9e039dfe12a093 Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Sat, 26 Jun 2021 14:53:29 +0100 Subject: zsh: Show nonzero exit statuses in ${PS1} --- zsh/rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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/\//} -- cgit v1.2.3-70-g09d2