Reference
Shell completion
line completion SHELL prints a script that completes commands, subcommands,
options, and fixed values such as reactions. It reads no session and makes no
network requests. Generate it again after upgrading.
Bash (save it once, then load it from ~/.bashrc):
Terminal
line completion bash > ~/.line-completion.bash
echo 'source ~/.line-completion.bash' >> ~/.bashrcZsh (put the file on fpath before compinit runs in ~/.zshrc):
Terminal
mkdir -p ~/.zfunc
line completion zsh > ~/.zfunc/_line
# In ~/.zshrc, before compinit: fpath=(~/.zfunc $fpath)Fish:
Terminal
line completion fish > ~/.config/fish/completions/line.fishPowerShell (add to your $PROFILE):
PowerShell
line completion powershell | Out-String | Invoke-ExpressionChat names, message IDs, and other account data are never completed, because that would mean reading your session. Homebrew doesn't install these scripts yet.