summaryrefslogtreecommitdiffstatshomepage
path: root/sh/.config/profile.d/20-go.sh
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2023-05-24 16:36:32 -0500
committerToby Vincent <tobyv13@gmail.com>2023-05-24 16:36:32 -0500
commitefc827f5a9efc072bd6cd248631e9647d048756f (patch)
treee66537fc5128aca80580fa640546970f3ac187d9 /sh/.config/profile.d/20-go.sh
parentc930c1e72e861bb285d77e0ccd3efe48d8f36739 (diff)
fix: prevent PATH from being overridden
Also, mimic Arch's /etc/profile more accurately, switching to append-path API function that is called from auxiliary profile.d scripts.
Diffstat (limited to 'sh/.config/profile.d/20-go.sh')
-rw-r--r--sh/.config/profile.d/20-go.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/sh/.config/profile.d/20-go.sh b/sh/.config/profile.d/20-go.sh
index 58d8115..252ba47 100644
--- a/sh/.config/profile.d/20-go.sh
+++ b/sh/.config/profile.d/20-go.sh
@@ -1,7 +1,9 @@
#!/bin/sh
-export GOPATH="$XDG_DATA_HOME/go"
-export PATH="$PATH:$GOPATH/bin"
-
# See: https://drewdevault.com/2022/05/25/Google-has-been-DDoSing-sourcehut.html
export GOPRIVATE=git.sr.ht
+export GOPATH="$XDG_DATA_HOME/go"
+
+append_path "$GOPATH/bin"
+
+export PATH