Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ Installation Path:

# Add gobrew to your ~/.bashrc or ~/.zshrc
export PATH="$HOME/.gobrew/current/bin:$HOME/.gobrew/bin:$PATH"
export GOROOT="$HOME/.gobrew/current/go"
export GOPATH="$HOME/.gobrew/current/go"
```

# Uninstall gobrew
Expand Down Expand Up @@ -229,12 +229,10 @@ echo "export GOBREW_ROOT=/usr/local/share" >> ~/.zshrc
curl -sLk https://raw.githubusercontent.com/kevincobain2000/gobrew/master/git.io.sh | sh
```

Set `GOROOT` and `GOPATH` in your shell config file (`.bashrc` or `.zshrc`).
Set `GOPATH` in your shell config file (`.bashrc` or `.zshrc`).

```sh
# optionally set
export GOROOT="$HOME/.gobrew/current/go"
# optionally set
export GOPATH="$HOME/.gobrew/current/go"
```

Expand Down
2 changes: 1 addition & 1 deletion cmd/gobrew/main_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ package main
const usageMsg string = `
# Add gobrew to your ~/.bashrc or ~/.zshrc
export PATH="$HOME/.gobrew/current/bin:$HOME/.gobrew/bin:$PATH"
export GOROOT="$HOME/.gobrew/current/go"
export GOPATH="$HOME/.gobrew/current/go"

`
2 changes: 1 addition & 1 deletion cmd/gobrew/main_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ package main
const usageMsg string = `
# Add gobrew to your environment variables
PATH="%USERPROFILE%\.gobrew\current\bin;%USERPROFILE%\.gobrew\bin;%PATH%"
GOROOT="%USERPROFILE%\.gobrew\current\go"
GOPATH="%USERPROFILE%\.gobrew\current\go"

`
Loading