resi: added exit code (stolen from sunrise.zsh-theme)