Skip to content

Commit

Permalink
Update README for autoupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
owenthereal committed Dec 19, 2013
1 parent 82a9d3f commit 1186d6f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,26 @@ To compile gh from source, you need to have a [Go development environment](http:
Note that `go get` will pull down sources from various VCS.
Please make sure you have git and hg installed.

## Upgrade
## Update

`gh` comes with a command to self update:

$ gh update

### Autoupdate

`gh` checks every two weeks for newer versions and prompts you for update if there's one.
A timestamp is stored in `~/.config/gh-update` for the next update time.

### Homebrew

If you installed `gh` with `brew tap jingweno/gh`, you can upgrade it with:
If you installed `gh` with `brew tap jingweno/gh`, you can update it with:

$ brew upgrade gh

### Source

To upgrade gh from source, run:
To update gh from source, run:

$ go get -u github.com/jingweno/gh

Expand Down

0 comments on commit 1186d6f

Please sign in to comment.