Guides
Shell Completion
Enable tab completion for PVM commands, environment names, Python versions, and config keys.
PVM supports tab completion for Bash and Zsh. Completions are loaded automatically when shell integration is enabled via pvm init.
Automatic loading
Completions load automatically when you add the init hook to your shell rc:
# zsh
eval "$(pvm init zsh)"
# bash
eval "$(pvm init bash)"Manual / standalone scripts
# Or generate standalone completion scripts
pvm completion bash > ~/.bash_completion.d/pvm
pvm completion zsh > ~/.zfunc/_pvmYou can also source pvm.sh directly:
source ~/.pvm/pvm.shWhat completes
- Commands and subcommands
- Environment names (
pvm env activate <TAB>) - Python versions (
pvm python install <TAB>) - Config keys and values (
pvm config set <TAB>)