Added vactivate() to assist in activation/creation of venvs
This commit is contained in:
parent
42c1b93936
commit
838137e2bb
9
.bashrc
9
.bashrc
|
@ -171,3 +171,12 @@ fontfind() {
|
||||||
local glyph=$1
|
local glyph=$1
|
||||||
FC_DEBUG=4 pango-view -qt "$glyph" 2>&1 | awk -F \" '/family: / { m = $2 } END { print m }'
|
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
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue