A zsh plugin to colorize XXX --help
.
- bat: this plugin will do nothing if
bat
is not installed.
This plugin respects zsh plugin standard, so if you use any plugin manager and follow the instructions of your plugin manager, it can be installed correctly.
By default, the plugin colorizes --help
, -?
, --help-all
, etc. You can
customize it to colorize more options like:
alias -g -- '-h=-h | -help'
Because many software use -h
to represent --human-readable
, --hex
, etc.
not --help
, this plugin doesn't colorize -h
by default.
You can redefine function -help()
to customize the colorization.
Such as:
-help() {
bat -plhelp --paging=always --color=always
}
will use a pager like less to display XXX --help
. More options can be
found by bat --help
.
You can XXX -h | -help
to force to colorize XXX -h
.