Skip to content

Shell completion

Available since v0.10

The completions subcommand outputs completion scripts for various shells.

Add the following to ~/.bashrc:

~/.bashrc
eval "$(console2svg completions script bash)"

Add the following before the compinit call in ~/.zshrc:

~/.zshrc
eval "$(console2svg completions script zsh)"

Place the script in the completions directory:

Terminal
mkdir -p ~/.config/fish/completions
console2svg completions script fish > ~/.config/fish/completions/console2svg.fish

Add the following to the PowerShell profile ($PROFILE):

$PROFILE
Invoke-Expression (& console2svg completions script pwsh | Out-String)