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

complete

# Add to ~/.bashrc, ~/.zshrc, ~/.config/fish/config.fish, etc.
eval "$(clean-mount complete)"

Generates a shell completion script so you can tab-complete subcommands, options, and paths.

Auto-install

clean-mount complete --install

Detects your shell from $SHELL and appends eval "$(clean-mount complete)" to the appropriate rc file (.bashrc, .zshrc, .config/fish/config.fish, .config/elvish/rc.elv). Pass a shell explicitly to install for a different shell:

clean-mount complete --install zsh

Manual install

Auto-detects your shell from $SHELL. Pass the shell name explicitly for other shells:

# bash
clean-mount complete bash > ~/.local/share/bash-completion/completions/clean-mount

# zsh (ensure ~/.zsh/completions is in your fpath)
mkdir -p ~/.zsh/completions
clean-mount complete zsh > ~/.zsh/completions/_clean-mount

# fish
clean-mount complete fish > ~/.config/fish/completions/clean-mount.fish