Skip to main content
gaal completion <bash|zsh|fish|powershell>
Prints a completion script for the requested shell to stdout. Source it into your current session, or write it to your shell’s completion directory for a permanent install.

Bash

Current session:
source <(gaal completion bash)
Permanent (add to ~/.bashrc):
gaal completion bash > ~/.local/share/bash-completion/completions/gaal

Zsh

Current session:
source <(gaal completion zsh)
Permanent:
gaal completion zsh > "${fpath[1]}/_gaal"
If your ${fpath[1]} isn’t writable, pick another writable directory on your fpath and place the file there.

Fish

Current session:
gaal completion fish | source
Permanent:
gaal completion fish > ~/.config/fish/completions/gaal.fish

PowerShell

gaal completion powershell | Out-String | Invoke-Expression
To make it permanent, add the line to your PowerShell $PROFILE.

Verifying

After installing, open a new shell and start typing gaal s<Tab>, you should see status sync come up. If completion doesn’t fire, your shell may need a restart, or your completion directory may not be on the lookup path.

CLI overview

Install