Hacker News new | ask | show | jobs
by jerf 4576 days ago
I was interested when I saw the project name, but this appears to be:

    mkdir -p pkg bin src
    export GOPATH="`pwd`"
    export PATH="$GOPATH/bin:$PATH"
Only what I typed there is shorter and safer than the committed code.

That's... simple, yes.

https://github.com/ChuckHa/goenv/blob/master/goenv

2 comments

Awesome, I won't pretend to be a bash expert. Any interest in opening a PR?
Naw, just go ahead and commit that if you like. That's too much easier to be worth the fork/checkout/commit/push/pull request cycle work in this case.
Understandable - but it's pretty easy to do small modifications like that using Github's edit feature. Everything but the editing itself is pretty much hidden away.
Did not know that. Thanks!
How is yours safer?
Spaces in the path.