fix(bash/go): add GOBIN
This commit is contained in:
parent
abfffb7798
commit
d31765265b
1 changed files with 6 additions and 1 deletions
|
@ -4,12 +4,17 @@
|
|||
if [ -f "${HOME}/.local/software/go/bin/go" ]; then
|
||||
export GOPATH=${XDG_DATA_HOME}/go
|
||||
export GOROOT=${HOME}/.local/software/go
|
||||
export PATH=${PATH}:${GOPATH}/bin
|
||||
export GOBIN=${HOME}/.local/goblin
|
||||
export PATH=${PATH}:${GOBIN}
|
||||
|
||||
if ! [ -d "${GOPATH}" ]; then
|
||||
mkdir ${GOPATH}
|
||||
fi
|
||||
|
||||
if ! [ -d "${GOBIN}" ]; then
|
||||
mkdir ${GOBIN}
|
||||
fi
|
||||
|
||||
export GOOS=linux
|
||||
export GOARCH=amd64
|
||||
export CGO_ENABLED=0
|
||||
|
|
Loading…
Reference in a new issue