From efc827f5a9efc072bd6cd248631e9647d048756f Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Wed, 24 May 2023 16:36:32 -0500 Subject: 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. --- sh/.config/profile.d/20-go.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sh/.config/profile.d/20-go.sh') 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 -- cgit v1.2.3-70-g09d2