/venv-manager

For anyone else that just uses venv, but doesn’t like to have your env dirs all over the place, try this!

Primary LanguageRustApache License 2.0Apache-2.0

venv-manager

Install

curl -s https://raw.githubusercontent.com/rrossmiller/venv-manager/main/scripts/install_rs.sh | /bin/zsh

Copy the function into ~/.zhsrc or ~/.bashrc

function venv() {
	source ~/.venv/venv_manager $@
	if [[ $? -eq 0 ]]; then
		eval $(tail -n 1 ~/.venv/.history)
	fi
}

source ~/.zshrc #(or ~/.bashrc)
venv