[zsh] Unquote the Python Path in init_env_python

This was causing the for to loop through the characters of the string
rather than the directories in $pythonroot
This commit is contained in:
Eryn Wells 2023-07-11 16:14:39 -07:00
parent fb144f1f3f
commit a4703c3509

View file

@ -5,7 +5,7 @@ autoload -Uz prepend_to_path
init_env_python() { init_env_python() {
local pythonRoot="$HOME/Library/Python" local pythonRoot="$HOME/Library/Python"
if [[ -d "$pythonRoot" ]]; then if [[ -d "$pythonRoot" ]]; then
for f in "$pythonRoot/*"; do for f in $pythonRoot/*; do
prepend_to_path "$f/bin" prepend_to_path "$f/bin"
done done
fi fi