From 6783d34fa30b3fc18b2a96f376facc0f1d093b66 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 15 Apr 2015 11:47:14 -0700 Subject: [PATCH] .bashrc.d/00environment: Set GOPATH and GOBIN I want to install to ~/.local/bin and ~/.local/lib/go to match the XDG Base Directory Specification default for $XDG_DATA_HOME [1,2]. [1]: https://golang.org/cmd/go/#hdr-GOPATH_environment_variable [2]: http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html --- src/.bashrc.d/00environment | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/.bashrc.d/00environment b/src/.bashrc.d/00environment index 4acd335..f0455ec 100644 --- a/src/.bashrc.d/00environment +++ b/src/.bashrc.d/00environment @@ -12,3 +12,6 @@ export MONKEYSPHERE_CHECK_KEYSERVER=false export SANE_DEFAULT_DEVICE='epkowa:interpreter:001:003' export NO_UPDATE_NOTIFIER=1 + +export GOPATH="${HOME}/.local/lib/go" +export GOBIN="${HOME}/.local/bin" -- 2.26.2