go: Add GOPATH to PATH

This commit is contained in:
finga 2024-12-16 21:03:02 +01:00
parent 9dd1a7f1ea
commit 12590a4a30

View file

@ -37,8 +37,9 @@ if [ -d "$HOME/.cargo/bin" ] ; then
fi fi
# if `$HOME/go/bin` exists, add it to $GOPATH # if `$HOME/go/bin` exists, add it to $GOPATH
if [ -d "$HOME/go/bin" ] ; then if [ -d "$HOME/.go/bin" ] ; then
GOPATH="$HOME/go/bin" GOPATH="$HOME/.go/bin"
PATH="$GOPATH:$PATH"
fi fi
# if `/usr/local/go/bin` exists, add it and $GOPATH to $PATH # if `/usr/local/go/bin` exists, add it and $GOPATH to $PATH