diff --git a/.zshrc b/.zshrc index 70fd666..7277db2 100644 --- a/.zshrc +++ b/.zshrc @@ -79,6 +79,16 @@ man () { command man "$@" } +venv() { + for d in venv/"$1" ve/"$1" ~/venv/"$1" + do + if [ -f "$d"/bin/activate ] + then + . "$d"/bin/activate + fi + done +} + source ~/.znewterm # assume pseudo terminals are from a "safe" terminal