zsh
nctl completion zsh
Completion Zsh Command
Generate the autocompletion script for the zsh shell.
nctl completion zsh [flags]
If shell completion is not already enabled in the working environment, execute the following command to enable it:
echo "autoload -U compinit; compinit" >> ~/.zshrc
To load completions in the current shell session, execute:
source <(nctl completion zsh)
To load completions for every new session, execute once:
Linux:
nctl completion zsh > "${fpath[1]}/_nctl"
MacOS:
nctl completion zsh > $(brew --prefix)/share/zsh/site-functions/_nctl
A new shell is required for this setup to take effect.
Command Options
Flags | Shorthand | Description |
---|---|---|
--help |
-h |
help for bash |
--no-descriptions |
disable completion descriptions |