Skip to content

Instantly share code, notes, and snippets.

@OSapozhnikov
Forked from vsouza/.bashrc
Created April 26, 2018 14:24
Show Gist options
  • Save OSapozhnikov/a2acdc5cae9a03b6e7d3784dec58560c to your computer and use it in GitHub Desktop.
Save OSapozhnikov/a2acdc5cae9a03b6e7d3784dec58560c to your computer and use it in GitHub Desktop.

Revisions

  1. @vsouza vsouza revised this gist Mar 20, 2018. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions install.sh
    Original file line number Diff line number Diff line change
    @@ -21,5 +21,3 @@ brew install mercurial

    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"
  2. @vsouza vsouza revised this gist Mar 20, 2018. 2 changed files with 5 additions and 1 deletion.
    2 changes: 1 addition & 1 deletion .zshrc
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # Set variables in .zshrc file

    # don't forget to change your path correctly!
    # don't forget to set path correctly!

    export GOPATH=$HOME/golang
    export GOROOT=/usr/local/opt/go/libexec
    4 changes: 4 additions & 0 deletions config.fish
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,7 @@
    # Set variables in config.fish file

    # don't forget to set path correctly!

    # GOLANG configurations
    set -x GOPATH $HOME/golang
    set -x GOROOT /usr/local/opt/go/libexec
  3. @vsouza vsouza revised this gist Mar 20, 2018. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions config.fish
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    # GOLANG configurations
    set -x GOPATH $HOME/golang
    set -x GOROOT /usr/local/opt/go/libexec
    set PATH $GOPATH/bin $GOROOT/bin $PATH
  4. @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
  5. @vsouza vsouza revised this gist Nov 27, 2015. No changes.
  6. @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"
  7. @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"
  8. @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