Put an always-successful command at the end of zshrc to avoid spurious error status on shell launch
This commit is contained in:
parent
f2fac18af2
commit
d16d42d392
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue