use custom GOPATH
This commit is contained in:
parent
7ed5fab5d8
commit
85fbc308f0
1 changed files with 3 additions and 7 deletions
|
@ -76,13 +76,9 @@ if command -v pnpm &> /dev/null; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if command -v go &> /dev/null; then
|
if command -v go &> /dev/null; then
|
||||||
GOPATH="$(go env GOPATH)"
|
export GOPATH="${HOME}/.gopath"
|
||||||
if [ -d "${GOPATH}" ]; then
|
mkdir -p "${GOPATH}"
|
||||||
export GOPATH
|
export PATH="${GOPATH}/bin:${PATH}"
|
||||||
export PATH="${GOPATH}/bin:${PATH}"
|
|
||||||
else
|
|
||||||
unset GOPATH
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if command -v lazygit &> /dev/null; then
|
if command -v lazygit &> /dev/null; then
|
||||||
|
|
Loading…
Reference in a new issue