From d16d42d3929204342f2e9315553061825c4e6c6e Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Mon, 13 Feb 2017 12:53:08 +1100 Subject: [PATCH] Put an always-successful command at the end of zshrc to avoid spurious error status on shell launch --- config/zsh/zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/zsh/zshrc b/config/zsh/zshrc index 246de63..6fc19cd 100644 --- a/config/zsh/zshrc +++ b/config/zsh/zshrc @@ -6,3 +6,8 @@ compinit -d $XDG_CACHE_HOME/zsh/zcompdump ([[ $_comp_dumpfile.zwc -nt $_comp_dumpfile ]] || zcompile $_comp_dumpfile) &! [[ -o login ]] && for f in $ZDOTDIR/interactive+login/*(N); source $f + +# If zsh init ends with a failing command (like a conditional) the prompt will +# show the "error" colour on first launch. To avoid this, we simply end with a +# true command: +true