From: W. Trevor King Date: Wed, 15 Apr 2015 18:47:14 +0000 (-0700) Subject: .bashrc.d/00environment: Set GOPATH and GOBIN X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6783d34fa30b3fc18b2a96f376facc0f1d093b66;p=dotfiles-public.git .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 --- 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"