Skip to content

glacier completions

Synopsis. Print a shell-completion script for bash, zsh, fish, or PowerShell.

Other commands: vibe version generate lint test init new explain

Argument

glacier completions <shell>

<shell> is required. Accepted values: bash, zsh, fish, pwsh.

Flags

FlagDefaultDescription
<shell>(required)Target shell. Values: bash, zsh, fish, pwsh.

Examples

Print the bash completion script to stdout:

sh
glacier completions bash

Install permanently for bash:

sh
glacier completions bash > ~/.local/share/bash-completion/completions/glacier

Load for the current bash session only:

sh
source <(glacier completions bash)

Install for zsh:

sh
glacier completions zsh > "${fpath[1]}/_glacier"
compinit

Install for fish:

sh
glacier completions fish > ~/.config/fish/completions/glacier.fish

Install for PowerShell:

powershell
glacier completions pwsh >> $PROFILE

Shell install locations

ShellInstall location
bash~/.local/share/bash-completion/completions/glacier
zsh${fpath[1]}/_glacier (run compinit after)
fish~/.config/fish/completions/glacier.fish
PowerShellAppend to $PROFILE

What it does under the hood

completions looks up the requested shell in cmd/glacier/internal/completions and writes the pre-generated script to stdout. No animation, no banner, no log records. The script is generated once at build time from the registered command tree, so it covers all nine verbs and their flags. Redirecting stdout to the appropriate file is all that is needed for permanent installation.

Exit codes

CodeMeaning
0Success
1stdout write failure
2Unknown shell name

See also

Apache-2.0