It's neat ~ could have used checks in-between to ensure e.g. `$(go env GOBIN)` is not empty.
For something more comprehensive (of course with a larger install size) and the possibility of handling not just Go, I have had good experiences with asdf [1].
Everybody keeps telling me about asdf, but I haven't yet come around to using it. I like to have manual control over my packages, but I guess I should really give it a try one day.
4 comments
[ 3.0 ms ] story [ 22.9 ms ] threadFor something more comprehensive (of course with a larger install size) and the possibility of handling not just Go, I have had good experiences with asdf [1].
[1] https://asdf-vm.com/
You don't even need to manually switch, you can set a version per folder!
Of course, the thing about bash scripts is that they are super specialized to do one thing, that usually only really works for the creator's workflow.
it uses nix under the hood so it won't mess with your local system
[1] https://bob.build/docs/getting-started/package-management#us...