.bashrc.d/00environment: Set GOPATH and GOBIN
authorW. Trevor King <wking@tremily.us>
Wed, 15 Apr 2015 18:47:14 +0000 (11:47 -0700)
committerW. Trevor King <wking@tremily.us>
Wed, 15 Apr 2015 18:47:14 +0000 (11:47 -0700)
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

index 4acd335f47f7fab3fda51d3e5f8deafc7237fed7..f0455ec77ba6f0861ed920d8a4217a22b1b48d0f 100644 (file)
@@ -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"