Skip to content

Instantly share code, notes, and snippets.

@FullStackForger
Forked from vsouza/.bashrc
Created November 20, 2016 23:44
Show Gist options
  • Select an option

  • Save FullStackForger/f5d52bb576df318d437a1f919b5dc8db to your computer and use it in GitHub Desktop.

Select an option

Save FullStackForger/f5d52bb576df318d437a1f919b5dc8db to your computer and use it in GitHub Desktop.

Revisions

  1. @vsouza vsouza revised this gist May 18, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install.sh
    Original file line number Diff line number Diff line change
    @@ -13,7 +13,7 @@ export GOROOT=/usr/local/opt/go/libexec
    export PATH=$PATH:$GOPATH/bin
    export PATH=$PATH:$GOROOT/bin

    command -v brew >/dev/null 2>&1 || { ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" }
    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    brew update
    brew install go
    brew install git
  2. @vsouza vsouza revised this gist Nov 27, 2015. No changes.
  3. @vsouza vsouza revised this gist Sep 14, 2015. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions install.sh
    Original file line number Diff line number Diff line change
    @@ -6,20 +6,20 @@ read user


    mkdir $gopath
    mkdir -p $HOME/$gopath/src/github.com/$user
    mkdir -p $gopath/src/github.com/$user

    export GOPATH=$gopath
    export GOROOT=/usr/local/opt/go/libexec
    export PATH=$PATH:$GOPATH/bin
    export PATH=$PATH:$GOROOT/bin

    command -v brew >/dev/null 2>&1 || { ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" }
    brew update && brew upgrade
    brew update
    brew install go
    brew install git
    brew install mercurial

    go get code.google.com/p/go.tools/cmd/godoc
    go get code.google.com/p/go.tools/cmd/vet
    go get golang.org/x/tools/cmd/godoc
    go get golang.org/x/tools/cmd/vet

    echo "go to https://golang.org/doc/code.html and enjoy :D"
  4. @vsouza vsouza revised this gist Feb 2, 2015. 3 changed files with 9 additions and 5 deletions.
    6 changes: 4 additions & 2 deletions .bashrc
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,8 @@
    # Set this variables in .bashrc file
    # Set variables in .bashrc file

    export GOPATH=$gopath
    # don't forget to change your path correctly!

    export GOPATH=$HOME/golang
    export GOROOT=/usr/local/opt/go/libexec
    export PATH=$PATH:$GOPATH/bin
    export PATH=$PATH:$GOROOT/bin
    6 changes: 4 additions & 2 deletions .zshrc
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,8 @@
    # Set this variables in .zshrc file
    # Set variables in .zshrc file

    export GOPATH=$gopath
    # don't forget to change your path correctly!

    export GOPATH=$HOME/golang
    export GOROOT=/usr/local/opt/go/libexec
    export PATH=$PATH:$GOPATH/bin
    export PATH=$PATH:$GOROOT/bin
    2 changes: 1 addition & 1 deletion install.sh
    Original file line number Diff line number Diff line change
    @@ -22,4 +22,4 @@ brew install mercurial
    go get code.google.com/p/go.tools/cmd/godoc
    go get code.google.com/p/go.tools/cmd/vet

    echo "go to https://golang.org/doc/code.html " and enjoy
    echo "go to https://golang.org/doc/code.html and enjoy :D"
  5. @vsouza vsouza created this gist Feb 2, 2015.
    6 changes: 6 additions & 0 deletions .bashrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    # Set this variables in .bashrc file

    export GOPATH=$gopath
    export GOROOT=/usr/local/opt/go/libexec
    export PATH=$PATH:$GOPATH/bin
    export PATH=$PATH:$GOROOT/bin
    6 changes: 6 additions & 0 deletions .zshrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    # Set this variables in .zshrc file

    export GOPATH=$gopath
    export GOROOT=/usr/local/opt/go/libexec
    export PATH=$PATH:$GOPATH/bin
    export PATH=$PATH:$GOROOT/bin
    25 changes: 25 additions & 0 deletions install.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    echo "Please enter your golang path (ex: $HOME/golang) :"
    read gopath

    echo "Please enter your github username (ex: vsouza) :"
    read user


    mkdir $gopath
    mkdir -p $HOME/$gopath/src/github.com/$user

    export GOPATH=$gopath
    export GOROOT=/usr/local/opt/go/libexec
    export PATH=$PATH:$GOPATH/bin
    export PATH=$PATH:$GOROOT/bin

    command -v brew >/dev/null 2>&1 || { ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" }
    brew update && brew upgrade
    brew install go
    brew install git
    brew install mercurial

    go get code.google.com/p/go.tools/cmd/godoc
    go get code.google.com/p/go.tools/cmd/vet

    echo "go to https://golang.org/doc/code.html " and enjoy