Shell Completions

Generate tab completion scripts for your shell to enable auto-completion of RAPS commands, subcommands, and options.

raps completions

raps completions <SHELL>

Supported shells: bash, zsh, fish, powershell, elvish


Installation

Bash

# Add to ~/.bashrc
eval "$(raps completions bash)"

Or save to a file:

raps completions bash > ~/.local/share/bash-completion/completions/raps

Zsh

# Add to ~/.zshrc
eval "$(raps completions zsh)"

Or save to a file:

raps completions zsh > ~/.zfunc/_raps
# Then add to ~/.zshrc: fpath+=~/.zfunc

Fish

raps completions fish > ~/.config/fish/completions/raps.fish

PowerShell

# Add to your PowerShell profile ($PROFILE)
raps completions powershell | Out-String | Invoke-Expression

Or save to a file:

raps completions powershell > raps-completions.ps1
# Then add to $PROFILE: . path\to\raps-completions.ps1

Elvish

raps completions elvish > ~/.config/elvish/lib/raps.elv
# Then add to ~/.config/elvish/rc.elv: use raps

Next Steps