The OS X Man Pages lists out all builtin functions. But where can I find the documentation of a particular one?
For instance, the command fc, on ubuntu I can get its manual by:
> help fc
fc: fc [-e ename] [-lnr] [first] [last] or fc -s [pat=rep] [command]
Display or execute commands from the history list.
fc is used to list or edit and re-execute commands from the history list.
FIRST and LAST can be numbers specifying the range, or FIRST can be a
string, which means the most recent command beginning with that
string.
....
Another example is the if expression, on ubuntu:
> help if
if: if COMMANDS; then COMMANDS; [ elif COMMANDS; then COMMANDS; ]... [ else COMMANDS; ] fi
Execute commands based on conditional.
...
What am I missing here?
hash,fc,etc. Perhaps will open an issue there – user2829759 Feb 22 '17 at 17:03zshhas it own help function calledrun-help. You will find information on setting uprun-helpinman zshcontrib. – fd0 Feb 22 '17 at 18:29man zshbuiltins. – Ricardo Stuven Aug 17 '17 at 14:58tldr, trytldr fc; gives quick examples if that is what you like. – Robert Ranjan Feb 08 '22 at 22:21