[zsh] Add Python virtual environments configuration to init-env-python
This commit is contained in:
parent
be4d690e32
commit
cd21b15b65
1 changed files with 4 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
# Eryn Wells <eryn@erynwells.me>
|
# Eryn Wells <eryn@erynwells.me>
|
||||||
|
|
||||||
autoload -Uz prepend_to_path
|
autoload -Uz prepend_to_path
|
||||||
|
autoload -Uz update-path
|
||||||
|
|
||||||
function init-env-python
|
function init-env-python
|
||||||
{
|
{
|
||||||
|
@ -10,6 +11,9 @@ function init-env-python
|
||||||
prepend_to_path "$f/bin"
|
prepend_to_path "$f/bin"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
export PYTHON_VIRTUAL_ENVS="$HOME/.local/share/python-virtual-environments"
|
||||||
|
update-path --prepend "$PYTHON_VIRTUAL_ENVS/eryn/bin"
|
||||||
}
|
}
|
||||||
|
|
||||||
init-env-python "$@"
|
init-env-python "$@"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue