Skip to Content
DocsGuidesShell Completions

Shell Completions

nb completion <SHELL>

<SHELL> is one of bash, elvish, fish, powershell or zsh. The script is printed to standard output.

bash

echo 'source <(nb completion bash)' >> ~/.bashrc

zsh

mkdir -p ~/.zfunc nb completion zsh > ~/.zfunc/_nb

Then add fpath=(~/.zfunc $fpath) before compinit in ~/.zshrc.

fish

nb completion fish > ~/.config/fish/completions/nb.fish
Last updated on