completion
Generate the autocompletion script for fns-cli for your shell.
Usage
fns-cli completion [command]Subcommands
| Subcommand | Description |
|---|---|
bash | Generate autocompletion script for Bash |
zsh | Generate autocompletion script for Zsh |
fish | Generate autocompletion script for Fish |
powershell | Generate autocompletion script for PowerShell |
Flags
| Flag | Description |
|---|---|
--no-descriptions | Disable completion descriptions |
-h, --help | Show help |
Bash
Requires the bash-completion package. Install it via your OS package manager if not already present.
Load for current session:
bash
source <(fns-cli completion bash)Load permanently on Linux:
bash
fns-cli completion bash > /etc/bash_completion.d/fns-cliLoad permanently on macOS:
bash
fns-cli completion bash > $(brew --prefix)/etc/bash_completion.d/fns-cliZsh
Enable shell completion (once, if not already enabled):
zsh
echo "autoload -U compinit; compinit" >> ~/.zshrcLoad for current session:
zsh
source <(fns-cli completion zsh)Load permanently on Linux:
zsh
fns-cli completion zsh > "${fpath[1]}/_fns-cli"Load permanently on macOS:
zsh
fns-cli completion zsh > $(brew --prefix)/share/zsh/site-functions/_fns-cliFish
Load for current session:
fish
fns-cli completion fish | sourceLoad permanently:
fish
fns-cli completion fish > ~/.config/fish/completions/fns-cli.fishPowerShell
Load for current session:
powershell
fns-cli completion powershell | Out-String | Invoke-ExpressionLoad permanently: Add the output of the above command to your PowerShell profile.
Start a new shell session after any permanent installation for the changes to take effect.
