When Hatch installs a Python version, the paths have spaces. E.g., /Users/hynek/Library/Application Support/hatch/pythons/pypy2.7/pypy2.7-v7.3.12-macos_arm64/bin
userpath adds this to my ~/.config/fish/config.fish:
# Created by `userpath` on 2023-12-12 07:22:33
set PATH $PATH /Users/hynek/Library/Application Support/hatch/pythons/pypy2.7/pypy2.7-v7.3.12-macos_arm64/bin
That doesn't work. If I add quotes around the path, it does.
Unrelatedly, you may to switch to fish_add_path --append which is more elegant (but also needs quotes).
When Hatch installs a Python version, the paths have spaces. E.g.,
/Users/hynek/Library/Application Support/hatch/pythons/pypy2.7/pypy2.7-v7.3.12-macos_arm64/bin
userpath
adds this to my~/.config/fish/config.fish
:That doesn't work. If I add quotes around the path, it does.
Unrelatedly, you may to switch to
fish_add_path --append
which is more elegant (but also needs quotes).