Menu
weird completion
Generate the autocompletion script for the specified shell.
weird completion [flags]Generate the autocompletion script for weird for the specified shell. See each sub-command's help for details on how to use the generated script.
Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.
Subcommands: bash, fish, powershell, zsh.
weird completion bash#
Generate the autocompletion script for bash.
weird completion bashGenerate the autocompletion script for the bash shell.
This script depends on the 'bash-completion' package. If it is not installed already, you can install it via your OS's package manager.
To load completions in your current shell session:
source <(weird completion bash)To load completions for every new session, execute once:
Linux:#
weird completion bash > /etc/bash_completion.d/weirdmacOS:#
weird completion bash > $(brew --prefix)/etc/bash_completion.d/weirdYou will need to start a new shell for this setup to take effect.
| Flag | Type | Default | Meaning |
|---|---|---|---|
--no-descriptions | bool | disable completion descriptions |
Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.
weird completion fish#
Generate the autocompletion script for fish.
weird completion fish [flags]Generate the autocompletion script for the fish shell.
To load completions in your current shell session:
weird completion fish | sourceTo load completions for every new session, execute once:
weird completion fish > ~/.config/fish/completions/weird.fishYou will need to start a new shell for this setup to take effect.
| Flag | Type | Default | Meaning |
|---|---|---|---|
--no-descriptions | bool | disable completion descriptions |
Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.
weird completion powershell#
Generate the autocompletion script for powershell.
weird completion powershell [flags]Generate the autocompletion script for powershell.
To load completions in your current shell session:
weird completion powershell | Out-String | Invoke-ExpressionTo load completions for every new session, add the output of the above command to your powershell profile.
| Flag | Type | Default | Meaning |
|---|---|---|---|
--no-descriptions | bool | disable completion descriptions |
Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.
weird completion zsh#
Generate the autocompletion script for zsh.
weird completion zsh [flags]Generate the autocompletion script for the zsh shell.
If shell completion is not already enabled in your environment you will need to enable it. You can execute the following once:
echo "autoload -U compinit; compinit" >> ~/.zshrcTo load completions in your current shell session:
source <(weird completion zsh)To load completions for every new session, execute once:
Linux:#
weird completion zsh > "${fpath[1]}/_weird"macOS:#
weird completion zsh > $(brew --prefix)/share/zsh/site-functions/_weirdYou will need to start a new shell for this setup to take effect.
| Flag | Type | Default | Meaning |
|---|---|---|---|
--no-descriptions | bool | disable completion descriptions |
Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.
This page is generated from the weird CLI; it changes when the CLI does.