How to add tab autocompletions for any command that will accept the --help switch: add compdef _gnu_generic [command] to .zshrc For example cat --help. compdef _gnu_generic cat