Skip to content

completion Command

The completion command generates tab-completion scripts for your shell. These scripts enable auto-completion of commands, subcommands, and flags when you press Tab.

Terminal window
pakyas completion <SHELL>
ArgumentDescription
SHELLShell to generate completions for: bash, zsh, fish, powershell, elvish
Terminal window
pakyas completion bash > ~/.local/share/bash-completion/completions/pakyas
# Restart shell or source the file
source ~/.local/share/bash-completion/completions/pakyas
Terminal window
# Ensure completion directory exists and is in fpath
mkdir -p ~/.zfunc
pakyas completion zsh > ~/.zfunc/_pakyas
Terminal window
pakyas completion fish > ~/.config/fish/completions/pakyas.fish
Terminal window
pakyas completion powershell >> $PROFILE
# Restart PowerShell
Terminal window
pakyas completion elvish > ~/.config/elvish/lib/pakyas.elv

Add to your ~/.config/elvish/rc.elv:

use pakyas

After installation, type pakyas and press Tab. You should see command suggestions like:

auth check api-key completion ping ...

Typing pakyas check and pressing Tab should show subcommands:

create delete doctor inspect list tail ...