Shell completion
Available since v0.10
The completions subcommand outputs completion scripts for various shells.
Installing for each shell
Section titled “Installing for each shell”Add the following to ~/.bashrc:
eval "$(console2svg completions script bash)"Add the following before the compinit call in ~/.zshrc:
eval "$(console2svg completions script zsh)"Place the script in the completions directory:
mkdir -p ~/.config/fish/completionsconsole2svg completions script fish > ~/.config/fish/completions/console2svg.fishPowerShell
Section titled “PowerShell”Add the following to the PowerShell profile ($PROFILE):
Invoke-Expression (& console2svg completions script pwsh | Out-String)