diff options
author | Case Duckworth | 2022-06-15 15:28:37 -0500 |
---|---|---|
committer | Case Duckworth | 2022-06-15 15:28:37 -0500 |
commit | a912ff1e96eb4baef49620665bbf26984c93c959 (patch) | |
tree | 1b1b5337f07f02c9891ee41a84e0fff856c6b862 /profile | |
parent | Edit $EDITOR (diff) | |
download | etc-a912ff1e96eb4baef49620665bbf26984c93c959.tar.gz etc-a912ff1e96eb4baef49620665bbf26984c93c959.zip |
Go path
Diffstat (limited to 'profile')
-rw-r--r-- | profile/go.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/profile/go.sh b/profile/go.sh index 077833e..8b4ca26 100644 --- a/profile/go.sh +++ b/profile/go.sh | |||
@@ -1,2 +1,9 @@ | |||
1 | export GOPATH="${XDG_DATA_HOME:=$HOME/.local/share}/go" | 1 | export GOPATH="${XDG_DATA_HOME:=$HOME/.local/share}/go" |
2 | |||
3 | # https://drewdevault.com/2022/05/25/Google-has-been-DDoSing-sourcehut.html | ||
4 | export GOPROXY=direct | ||
5 | |||
6 | # For the GO binary ... XXX: this is slightly clunky (~/usr/local/go/bin is the directory) | ||
7 | path_add_to_PATH $(realpath "$XDG_DATA_HOME/../local/go/bin") | ||
8 | |||
2 | command -v go >/dev/null 2>&1 && path_add_to_PATH "$(go env GOPATH)/bin" | 9 | command -v go >/dev/null 2>&1 && path_add_to_PATH "$(go env GOPATH)/bin" |