Put an always-successful command at the end of zshrc to avoid spurious error status on shell launch

This commit is contained in:
Danielle McLean 2017-02-13 12:53:08 +11:00
parent f2fac18af2
commit d16d42d392
No known key found for this signature in database
GPG key ID: CC91589719027E94

View file

@ -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