It's frustrating when I do something like man bindkey
and i get:
BUILTIN(1) BSD General Commands Manual BUILTIN(1) NAME builtin, !, %, ., :, @, {, }, alias, alloc, bg, bind, bindkey, break, breaksw, builtins, case, cd, chdir, command, complete, continue, default, dirs, do, done, echo, echotc, elif, else, end, endif, endsw, esac, eval, exec, exit, export, false, fc, fg, filetest, fi, for, foreach, getopts, glob, goto, hash, hashstat, history, hup, if, jobid, jobs, kill, limit, local, log, login, logout, ls-F, nice, nohup, notify, onintr, popd, printenv, pushd, pwd, read, readonly, rehash, repeat, return, sched, set, setenv, settc, setty, setvar, shift, source, stop, suspend, switch, telltc, test, then, time, times, trap, true, type, ulimit, umask, unalias, uncomplete, unhash, unlimit, unset, unsetenv, until, wait, where, which, while -- shell built-in commands SYNOPSIS builtin [-options] [args ...] DESCRIPTION Shell builtin commands are commands that can be executed within the running shell's process. Note that, in the
Is there an easy way to access the documentation for such commands?
Other answers are too long...
Set up the run-help
function by adding the following to your .zshrc
:
unalias run-help
autoload run-help
Tip: Reload the config with . ~/.zshrc
.
Now you should see a manual entry when you run run-help bindkey
. If it doesn't work, you need to see more instructions for Accessing On-Line Help (man zshcontrib
).
In some cases, run-help will not find a manual entry and you have to search through man zshall
.
If run-help
does not scroll to the specific command, you need to override HELPDIR
to match your installation of zsh.