diff --git a/dotfiles/fedora/.bashrc.d/09-go-env.sh b/dotfiles/fedora/.bashrc.d/09-go-env.sh new file mode 100644 index 0000000..fe20186 --- /dev/null +++ b/dotfiles/fedora/.bashrc.d/09-go-env.sh @@ -0,0 +1,7 @@ +# Keep Go's workspace out of the home directory root. +export GOPATH="$HOME/.local/share/Go" +case ":$PATH:" in + *":$GOPATH/bin:"*) ;; + *) PATH="$GOPATH/bin:$PATH" ;; +esac +export PATH