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

shadowforge can generate tab-completion scripts for all major shells.

Usage

shadowforge completions <SHELL>

Where <SHELL> is one of: bash, zsh, fish, elvish, powershell.

You can also write directly to a file:

shadowforge completions bash --output ~/.local/share/bash-completion/completions/shadowforge

Bash

# Add to ~/.bashrc or ~/.bash_profile
eval "$(shadowforge completions bash)"

Or install persistently:

shadowforge completions bash > ~/.local/share/bash-completion/completions/shadowforge

Zsh

# Add to ~/.zshrc (before compinit)
eval "$(shadowforge completions zsh)"

Or install to your completions directory:

shadowforge completions zsh > ~/.zfunc/_shadowforge
# Ensure ~/.zfunc is in your fpath:
# fpath=(~/.zfunc $fpath)

Fish

shadowforge completions fish > ~/.config/fish/completions/shadowforge.fish

Elvish

eval (shadowforge completions elvish | slurp)

PowerShell

shadowforge completions powershell | Out-String | Invoke-Expression

# Or add to your $PROFILE:
shadowforge completions powershell >> $PROFILE