Added vactivate() to assist in activation/creation of venvs

This commit is contained in:
David Thurstenson 2017-05-24 12:33:13 -05:00
parent 42c1b93936
commit 838137e2bb
1 changed files with 9 additions and 0 deletions

View File

@ -171,3 +171,12 @@ fontfind() {
local glyph=$1
FC_DEBUG=4 pango-view -qt "$glyph" 2>&1 | awk -F \" '/family: / { m = $2 } END { print m }'
}
vactivate() {
local path=~/.venv/$1
if [[ ! -d $path ]]; then
python -m venv $path --prompt "venv: $1"
fi
source $path/bin/activate
}