Currect GOPATH, added the right git-profile package

This commit is contained in:
2023-03-26 23:43:29 +00:00
parent 53d91f8248
commit bb7ba3c919
2 changed files with 12 additions and 1 deletions

View File

@@ -45,7 +45,8 @@ export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || pr
# If we have go packages, include them to the PATH
if command -v go &> /dev/null; then
export GOPATH=$(go env GOPATH);
export GOPATH="$XDG_DATA_HOME/go";
mkdir -p "$GOPATH"
if [ -d "$GOPATH/bin" ]; then
export PATH="$GOPATH/bin:$PATH"
fi