Shell Completions
The capsem CLI ships with tab-completion scripts for bash, zsh, fish, and PowerShell. Generate the script once and source it from your shell’s startup file.
capsem completions bash > ~/.local/share/bash-completion/completions/capsemOr on macOS with Homebrew bash-completion:
capsem completions bash > /opt/homebrew/etc/bash_completion.d/capsemRestart your shell (or source the file) and tab-completion works for capsem <TAB>.
mkdir -p ~/.zfunccapsem completions zsh > ~/.zfunc/_capsemEnsure ~/.zfunc is on your fpath in ~/.zshrc:
fpath=(~/.zfunc $fpath)autoload -Uz compinit && compinitRestart your shell.
capsem completions fish > ~/.config/fish/completions/capsem.fishfish picks this up automatically on the next prompt.
PowerShell
Section titled “PowerShell”capsem completions powershell | Out-String | Invoke-ExpressionTo load on every session, add the line to $PROFILE.
Verifying
Section titled “Verifying”Type capsem followed by TAB. You should see subcommands (create, shell, list, info, …). Completion is generated from the live CLI definition, so it always matches your installed version.
Regenerating after upgrades
Section titled “Regenerating after upgrades”After capsem update lands a new version, regenerate the completion file. The script is static — it doesn’t call back into the binary at runtime.