commit a823559387f331df29788fa74980ce9a37d94c4b
parent c42ef859337c07477033a5d821a925bdb75badde
Author: Chris Bracken <chris@bracken.jp>
Date: Sat, 19 Apr 2014 16:27:06 -0700
Clean up GOROOT, GOPATH
Diffstat:
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/.paths b/.paths
@@ -21,7 +21,8 @@ path_append() {
path_prepend "$HOME/bin"
# Go development
-path_prepend "/usr/local/Cellar/go/1.2.1/libexec/bin"
+path_prepend "$GOROOT/bin"
+path_prepend "$GOPATH/bin"
# Chromium and Dart development
path_prepend "$HOME/src/depot_tools"
diff --git a/.profile b/.profile
@@ -11,7 +11,8 @@ umask 022
export EDITOR=/usr/bin/vim
export GNUPGHOME="$HOME/.gnupg"
export DART_SDK="$HOME/src/third_party/dart-sdk"
-export GOROOT="$HOME/src/go"
+export GOROOT=`go env GOROOT`
+export GOPATH="$HOME/src/go"
if [ -n "$BASH_VERSION" ]; then
# bash doesn't read .bashrc in login shells, do it manually