Add hatch autocomplete for oh-my-zsh
- Run this command
mkdir -p ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/hatch-zsh-completion && _HATCH_COMPLETE=zsh_source hatch > ${ZSH_CUSTOM}/plugins/hatch-zsh-completion/hatch-zsh-completion.plugin.zsh
- Add
hatch-zsh-completion
to your.zshrc
file atplugins=
like so
plugins=(git hatch-zsh-completion)
Run a script from a non-default environment
hatch run <env-name>:<script-alias>
Deactivate an environment
exit
Enter an environment
hatch -e <env-name> shell
Adding environment variables
[tool.hatch.envs.<env-name>.env-vars]
NAME = "value"
Run with uv
as the virtual env backend.
Link to discussion