Linux command
run-help 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Display help for a command
run-help [command]
Display help for a built-in
run-help cd
Display help for an external command
run-help grep
Display subcommand-aware help for git
run-help-git [subcommand]
说明
run-help is a Zsh function that provides context-sensitive help for commands. When invoked, it determines the type of command and displays the appropriate documentation, whether from man pages, built-in help, or function definitions. By default in Zsh, run-help is bound to ESC h (or Alt+h), allowing quick access to help while typing a command. The function intelligently handles different command types: it shows man pages for external commands, Zsh documentation for built-ins, and function source for shell functions. The standard Zsh distribution includes helper functions like run-help-git, run-help-ip, run-help-openssl, and run-help-sudo that provide subcommand-aware help for complex commands. These must be autoloaded to be available. To enable enhanced run-help functionality in Zsh, add to your .zshrc: ``` autoload -Uz run-help unalias run-help 2>/dev/null alias help=run-help ```
FAQ
What is the run-help command used for?
run-help is a Zsh function that provides context-sensitive help for commands. When invoked, it determines the type of command and displays the appropriate documentation, whether from man pages, built-in help, or function definitions. By default in Zsh, run-help is bound to ESC h (or Alt+h), allowing quick access to help while typing a command. The function intelligently handles different command types: it shows man pages for external commands, Zsh documentation for built-ins, and function source for shell functions. The standard Zsh distribution includes helper functions like run-help-git, run-help-ip, run-help-openssl, and run-help-sudo that provide subcommand-aware help for complex commands. These must be autoloaded to be available. To enable enhanced run-help functionality in Zsh, add to your .zshrc: ``` autoload -Uz run-help unalias run-help 2>/dev/null alias help=run-help ```
How do I run a basic run-help example?
Run `run-help [command]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more run-help examples?
This page includes 4 examples for run-help, plus related commands for nearby Linux tasks.