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
mkdir -p ~/.local/share/bash-completion/completions
pakyas completion bash > ~/.local/share/bash-completion/completions/pakyas
# Restart the shell, or load it now
source ~/.local/share/bash-completion/completions/pakyas

The bash-completion package loads files from this directory automatically. Without it, add the source line to ~/.bashrc.

Terminal window
# Ensure completion directory exists and is in fpath
mkdir -p ~/.zfunc
pakyas completion zsh > ~/.zfunc/_pakyas
Terminal window
mkdir -p ~/.config/fish/completions
pakyas completion fish > ~/.config/fish/completions/pakyas.fish
Terminal window
pakyas completion powershell >> $PROFILE
# Restart PowerShell
Terminal window
mkdir -p ~/.config/elvish/lib
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:

api-key auth check completion help login logout
monitor org ping project update whoami

Typing pakyas check and pressing Tab should show subcommands:

create delete doctor help inspect list logs pause
resume show sync tail update

Completions are generated from the installed version, so regenerate them after pakyas update.