cedi / meaningful-error-codes

Display meaningful error codes in your zsh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Meaningful error codes

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.

Installing this plugin

  1. cloning this repository to $ZSH_CUSTOM/plugins/
  2. enabling the plugin in your zshrc
plugins=(meaningful-error-codes)
  1. 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%}'

Example

You can see this plugin in action in my dotfiles repository:

Screenshot

About

Display meaningful error codes in your zsh

License:GNU General Public License v3.0


Languages

Language:Shell 100.0%