completion.md
nsc completion
Generate shell completion scripts for nsc.
Use nsc completion to generate completion scripts for Bash, fish, PowerShell, or Zsh. Source the generated script in the current shell or install it for future sessions.
Usage
theme={null}
nsc completion <shell>
nsc completion bash
Generate a Bash completion script. The script requires the bash-completion package.
Usage
theme={null}
nsc completion bash [--no-descriptions]
Enable completion in the current session
theme={null}
source <(nsc completion bash)
Install Bash completion
On Linux:
theme={null}
nsc completion bash > /etc/bash_completion.d/nsc
On macOS:
theme={null}
nsc completion bash > $(brew --prefix)/etc/bash_completion.d/nsc
Start a new shell after installing the script.
Options
--no-descriptions
Omit descriptions from completion suggestions.
nsc completion fish
Generate a fish completion script.
Usage
theme={null}
nsc completion fish [--no-descriptions]
Enable completion in the current session
theme={null}
nsc completion fish | source
Install fish completion
theme={null}
nsc completion fish > ~/.config/fish/completions/nsc.fish
Start a new shell after installing the script.
Options
--no-descriptions
Omit descriptions from completion suggestions.
nsc completion powershell
Generate a PowerShell completion script.
Usage
theme={null}
nsc completion powershell [--no-descriptions]
Enable completion in the current session
theme={null}
nsc completion powershell | Out-String | Invoke-Expression
Add this command to your PowerShell profile to enable completion in future sessions.
Options
--no-descriptions
Omit descriptions from completion suggestions.
nsc completion zsh
Generate a Zsh completion script. If shell completion is not enabled, initialize Zsh's completion system before loading the script.
Usage
theme={null}
nsc completion zsh [--no-descriptions]
Enable completion in the current session
theme={null}
source <(nsc completion zsh)
Install Zsh completion
On Linux:
theme={null}
nsc completion zsh > "${fpath[1]}/_nsc"
On macOS:
theme={null}
nsc completion zsh > $(brew --prefix)/share/zsh/site-functions/_nsc
Start a new shell after installing the script.
Options
--no-descriptions
Omit descriptions from completion suggestions.