summaryrefslogtreecommitdiffstats
path: root/.config/shell
diff options
context:
space:
mode:
authorMathieu Rollet <matletix@gmail.com>2023-04-12 14:10:42 +0200
committerGitHub <noreply@github.com>2023-04-12 12:10:42 +0000
commit5c92a1770f1a496cfa188632e2bf3d34bd325ad4 (patch)
tree438f010ca8266107872bf00a41d5f457c7e7ad85 /.config/shell
parenta94ee62680c284a5fa86ac1db9660e344f41bd2e (diff)
downloadeibhear-5c92a1770f1a496cfa188632e2bf3d34bd325ad4.tar.gz
eibhear-5c92a1770f1a496cfa188632e2bf3d34bd325ad4.tar.zst
eibhear-5c92a1770f1a496cfa188632e2bf3d34bd325ad4.zip
Set GOMODCACHE to comply with XDG (#1299)
If GOMODCACHE is not set, it defaults to $GOPATH/pkg/mod cf. https://go.dev/ref/mod#environment-variables
Diffstat (limited to '.config/shell')
-rw-r--r--.config/shell/profile1
1 files changed, 1 insertions, 0 deletions
diff --git a/.config/shell/profile b/.config/shell/profile
index e78f21e..5508943 100644
--- a/.config/shell/profile
+++ b/.config/shell/profile
@@ -39,6 +39,7 @@ export TMUX_TMPDIR="$XDG_RUNTIME_DIR"
export ANDROID_SDK_HOME="$XDG_CONFIG_HOME/android"
export CARGO_HOME="$XDG_DATA_HOME/cargo"
export GOPATH="$XDG_DATA_HOME/go"
+export GOMODCACHE="$XDG_CACHE_HOME/go/mod"
export ANSIBLE_CONFIG="$XDG_CONFIG_HOME/ansible/ansible.cfg"
export UNISON="$XDG_DATA_HOME/unison"
export HISTFILE="$XDG_DATA_HOME/history"