Skip to main content
The completion command generates autocompletion scripts for your shell.

Bash

Requires the bash-completion package. Load for the current session:
source <(loops completion bash)
Load for every new session:
# Linux
loops completion bash > /etc/bash_completion.d/loops

# macOS
loops completion bash > $(brew --prefix)/etc/bash_completion.d/loops

Zsh

If shell completion is not already enabled, run once:
echo "autoload -U compinit; compinit" >> ~/.zshrc
Load for the current session:
source <(loops completion zsh)
Load for every new session:
# Linux
loops completion zsh > "${fpath[1]}/_loops"

# macOS
loops completion zsh > $(brew --prefix)/share/zsh/site-functions/_loops

Fish

Load for the current session:
loops completion fish | source
Load for every new session:
loops completion fish > ~/.config/fish/completions/loops.fish

PowerShell

Load for the current session:
loops completion powershell | Out-String | Invoke-Expression
To load for every new session, add the output of the above command to your PowerShell profile.
Last modified on April 7, 2026