[zsh] Update init-env-python and init-env-playdate

This commit is contained in:
Eryn Wells 2024-09-24 09:17:45 -07:00
parent aea4ff965e
commit 75e32e473a
5 changed files with 32 additions and 40 deletions

15
zsh/func/init-env-python Normal file
View file

@ -0,0 +1,15 @@
# Eryn Wells <eryn@erynwells.me>
autoload -Uz prepend_to_path
function init-env-python
{
local -r user_python_root="$HOME/Library/Python"
if [[ -d "$pythonRoot" ]]; then
for f in $pythonRoot/*; do
prepend_to_path "$f/bin"
done
fi
}
init-env-python "$@"