kevincobain2000 / gobrew

Go version manager, written in Go. Super simple tool to install and manage Go versions. Install go without root. Gobrew doesn't require shell rehash.
https://medium.com/web-developer/go-version-manager-gobrew-c8750157dfe6
MIT License
364 stars 24 forks source link

chore: add powershell install script #143

Closed lincolnthalles closed 10 months ago

lincolnthalles commented 10 months ago

This increses the ease of use for Windows users. The script downloads the latest gobrew version and setups all required environment variables in user scope.

GOPATH=$HOME\go
GOROOT=$HOME\.gobrew\current\go
PATH=$PATH;$HOME\go\bin;$HOME\.gobrew\bin;$HOME\.gobrew\current\bin
kevincobain2000 commented 10 months ago

Thanks, and I have no way to test this. Kinda will have to take you on your word.

lincolnthalles commented 10 months ago

Thanks, and I have no way to test this. Kinda will have to take you on your word.

I tested on Windows Sandbox, which spins up a clean virtual environment and it's fine.

With the last fixes, it's even possible to run this on Powershell for Linux.

kevincobain2000 commented 10 months ago

Thanks and yea man. I am happy to merge, it doesn’t affect the core lib. Will wait for the second Owners review @juev