18 lines
381 B
Fish
18 lines
381 B
Fish
if test -d "/opt/go"
|
|
set -x PATH "/opt/go/bin" $PATH
|
|
end
|
|
|
|
if test -f "/usr/local/go"
|
|
set -x PATH "/usr/local/go/bin" $PATH
|
|
end
|
|
|
|
# If go is installed in ~/Apps/go use it there
|
|
# put at start of PATH to override system go
|
|
if test -d "$HOME/Apps/go"
|
|
set -x PATH "$HOME/Apps/go/bin" $PATH
|
|
end
|
|
|
|
# Now setup the GOPATH
|
|
set -x GOPATH "$HOME/go"
|
|
set -x PATH "$GOPATH/bin" $PATH
|