id | title | sidebar_label |
---|---|---|
completion |
saucectl completion |
saucectl completion |
Generate a completion script for bash
, zsh
, fish
and powershell
shells.
$ saucectl completion [OPTIONS]
saucectl completion bash > /etc/bash_completion.d/saucectl
saucectl completion bash > /usr/local/etc/bash_completion.d/saucectl
- If shell completion is not already enabled in your environment, enable it by executing the following once:
echo "autoload -U compinit; compinit" >> ~/.zshrc
- To load completions for each session, execute once:
saucectl completion zsh > "${fpath[1]}/_saucectl"
- Start a new shell to apply this setup.
saucectl completion fish | source
To load completions for each session, execute once:
saucectl completion fish > ~/.config/fish/completions/saucectl.fish
saucectl completion powershell | Out-String | Invoke-Expression
To load completions for every new session, run the following and then source this file from your Powershell profile:
saucectl completion powershell > saucectl.ps1