manager/config/bash/bashrc.d/go

28 lines
632 B
Text
Raw Normal View History

2022-04-18 00:14:34 +01:00
## Description: Bash configuration for the Go setup
## vim: ft=sh :
if [ -f "${HOME}/.local/software/go/bin/go" ]; then
export GOPATH=${XDG_DATA_HOME}/go
export GOROOT=${HOME}/.local/software/go
2022-04-29 08:07:28 +01:00
export GOBIN=${HOME}/.local/goblin
export PATH=${PATH}:${GOBIN}
2022-04-18 00:14:34 +01:00
if ! [ -d "${GOPATH}" ]; then
mkdir ${GOPATH}
fi
2022-04-29 08:07:28 +01:00
if ! [ -d "${GOBIN}" ]; then
mkdir ${GOBIN}
fi
2022-04-18 00:14:34 +01:00
export GOOS=linux
export GOARCH=amd64
export CGO_ENABLED=0
fi
2022-04-29 08:31:09 +01:00
# Magefile stuff
if [ -x "$( command -v mage )" ]; then
export MAGEFILE_CACHE=${XDG_CACHE_HOME}/magefile
export MAGEFILE_ENABLE_COLOR=true
fi