Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Shell completions

Static scripts

twc-rs completions nushell > ~/.config/nushell/completions/twc-rs.nu
twc-rs completions zsh     > ~/.zfunc/_twc-rs
twc-rs completions bash    > /etc/bash_completion.d/twc-rs

Supported shells: bash, zsh, fish, powershell, elvish, nushell. The AUR package installs completions into the standard vendor directories.

Dynamic completions

The dynamic engine also completes live valuestwc-rs apps logs <TAB> offers your actual apps by name and ID, fetched from the API (silently skipped when offline).

twc-rs dynamic completion demo

ShellAdd to
bashecho 'source <(COMPLETE=bash twc-rs)' >> ~/.bashrc
zshecho 'source <(COMPLETE=zsh twc-rs)' >> ~/.zshrc
fishecho 'COMPLETE=fish twc-rs | source' >> ~/.config/fish/config.fish
elvishecho 'eval (E:COMPLETE=elvish twc-rs | slurp)' >> ~/.elvish/rc.elv
powershell$env:COMPLETE = "powershell"; twc-rs | Out-String | Invoke-Expression; Remove-Item Env:\COMPLETE in $PROFILE

Nushell keeps the static script — the dynamic engine does not support it yet.