I have a lot of aliases and functions in my terminal, in addition to the plethora of UNIX commands. If I’m not sure what the source of a command is, getting info on it can require multiple tries. First a man
check, then a type
or alias
command to see if it’s custom, then a man -k
to see if I misspelled something, and so on. I eventually decided to just write an automated way to sift through those possibilities.
This is a companion discussion topic for the original entry at https://brettterpstra.com/2016/05/18/shell-tricks-halp-a-universal-help-tool