Skip to content
Docsv0.7.2

denvig shell

The shell command provides shell integration helpers.

Terminal window
denvig shell <subcommand>

Output a shell completion script. ZSH is currently supported:

Terminal window
denvig shell completions zsh

Pass --install to write the script to the shell completions directory (~/.zsh/completions/_denvig) automatically:

Terminal window
denvig shell completions zsh --install
Option Description
--install Install completions to the shell completions directory.

After installing, make sure the completions directory is on your fpath. Add the following to your ~/.zshrc if it isn’t already:

Terminal window
fpath=(~/.zsh/completions $fpath)
autoload -Uz compinit && compinit

To install completions to a custom directory, redirect the output directly:

Terminal window
denvig shell completions zsh > /custom/path/_denvig