From e060875409ac2a05684cda17c07eece8cf35d19b Mon Sep 17 00:00:00 2001 From: koolhead17 Date: Thu, 12 Nov 2015 19:01:05 +0530 Subject: [PATCH] Update INSTALLGO.md Added the .bash_profile changes for mac & modified .bashrc content for ubuntu. --- INSTALLGO.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/INSTALLGO.md b/INSTALLGO.md index 442a2c5a..c3762bbf 100644 --- a/INSTALLGO.md +++ b/INSTALLGO.md @@ -23,9 +23,17 @@ Add the following exports to your ``~/.bashrc``. Environment variable GOROOT spe and GOPATH specifies the location of your project workspace. ```sh -$ export GOROOT=${HOME}/bin/go -$ export GOPATH=${HOME}/go -$ export PATH=$PATH:${HOME}/bin/go/bin:${GOPATH}/bin +export GOROOT=${HOME}/bin/go +export GOPATH=${HOME}/go +export PATH=$PATH:${HOME}/bin/go/bin:${GOPATH}/bin +``` +```sh +$ source ~/.bashrc +``` + +##### Testing it all +```sh +$ go env ``` ## OS X (Yosemite) 10.10 @@ -66,7 +74,7 @@ export PATH=$PATH:${GOPATH}/bin ##### Source the new enviornment ```sh -$ source ~/.bashrc +$ source ~/.bash_profile ``` ##### Testing it all