Skip to content

Commit

Permalink
mod readme
Browse files Browse the repository at this point in the history
  • Loading branch information
adierebel committed Aug 10, 2018
1 parent fc3b44d commit 3f88f88
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,24 @@
# GoSwitch

Easily switch GOPATH working directory

## Install

### Build from source

- Install Go from https://golang.org/
- Setup GOPATH, tutorial: https://github.com/golang/go/wiki/SettingGOPATH
- Download GoSwitch source on Release tab.
- Get dependencies, `go get gopkg.in/alecthomas/kingpin.v2`
- Build, `go build goswitch.go`

### Add to PATH

Add goswitch executable to PATH variable, so you can access goswitch everywhere on cmd/terminal

#### Windows

- Copy `goswitch.exe` to `C:\Program Files\GoSwitch\goswitch.exe`
- Open `Control Panel` -> `System and Security` -> `System` -> `Advanced system settings` -> Click button `Environment Variables..`
- On tab User variables for %user%, edit `PATH` and add `;C:\Program Files\GoSwitch` on end of text
- Open new CMD, type `goswitch`

0 comments on commit 3f88f88

Please sign in to comment.