moovweb / gvm

Go Version Manager
http://github.com/moovweb/gvm
MIT License
9.87k stars 520 forks source link

fixed space in $PATH #443

Open andot opened 10 months ago

andot commented 10 months ago

if /mnt/c/Users/andot/AppData/Local/Programs/Microsoft VS Code/bin in $PATH, it will be spilt to:

/mnt/c/Users/andot/AppData/Local/Programs/Microsoft VS Code/bin

This pr fixed this bug.

floriangosse commented 9 months ago

I've the same problem on MacOS with ZSH and VS Code. The path that's added to PATH is /Applications/Visual Studio Code.app/Contents/Resources/app/bin.

This change prevents me from properly using gvm as I have to conditionally enable gvm.

caioreix commented 3 months ago

Any updates to merge this?