This plugin is meant to display error codes from a program in a meaningful way, by not just printing the error code, but also having a textual description for it. There are quite a few error codes which are special. They can be fount here.
- cloning this repository to
$ZSH_CUSTOM/plugins/
- enabling the plugin in your zshrc
plugins=(meaningful-error-codes)
- Adding
${exit_status}
to your ZSH Prompt:
# i prefer to have this in my RPROMPT and colored red:
RPROMPT='%{$fg[red]%}${exit_status}%{$reset_color%}'
You can see this plugin in action in my dotfiles repository: