summaryrefslogtreecommitdiff
path: root/plugins/github/README.md
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2015-11-27 16:07:00 +0100
committerMarc Cornellà <marc.cornella@live.com>2015-11-27 16:07:00 +0100
commit90e16301634d75f2637acdf5765bac560db0da5f (patch)
tree5492abe17717295c4ec29f18775d12164e564cde /plugins/github/README.md
parentdfe10af9fa853842426581f8b19c1dc85d455b83 (diff)
parent24492a2fdb6feed1b529459dbd97061460aa968f (diff)
downloadzsh-90e16301634d75f2637acdf5765bac560db0da5f.tar.gz
zsh-90e16301634d75f2637acdf5765bac560db0da5f.tar.bz2
zsh-90e16301634d75f2637acdf5765bac560db0da5f.zip
Merge pull request #4443 from apjanke/github-update
Update github plugin to work with current hub versions
Diffstat (limited to 'plugins/github/README.md')
-rw-r--r--plugins/github/README.md46
1 files changed, 46 insertions, 0 deletions
diff --git a/plugins/github/README.md b/plugins/github/README.md
new file mode 100644
index 000000000..21b7367f7
--- /dev/null
+++ b/plugins/github/README.md
@@ -0,0 +1,46 @@
+# github
+
+This plugin supports working with GitHub the command line. It provides a few things:
+
+* Sets up the `hub` wrapper and completions for the `git` command if you have `hub` installed.
+* Completion for the `github` Ruby gem.
+* Convenience functions for working with repos and URLs.
+
+### Functions
+
+* `empty_gh` - Creates a new empty repo (with a `README.md`) and pushes it to GitHub
+* `new_gh` - Initializes an existing directory as a repo and pushes it to GitHub
+* `exist_gh` - Takes an existing repo and pushes it to GitHub
+* `git.io` - Shortens a URL using [git.io](http://git.io)
+
+
+## Installation
+
+[Hub](http://github.com/github/hub) needs to be installed if you want to use it. On OS X with Homebrew, this can be done with `brew install hub`. The `hub` completion definition needs to be added to your `$FPATH` before initializing OMZ.
+
+The [`github` Ruby gem](http://github.com/defunkt/github-gem) needs to be installed if you want to use it.
+
+### Configuration
+
+These settings affect `github`'s behavior.
+
+#### Environment variables
+
+* `$GITHUB_USER`
+* `$GITHUB_PASSWORD`
+
+#### Git configuration options
+
+* `github.user` - GitHub username for repo operations
+
+See `man hub` for more details.
+
+### Homebrew installation note
+
+If you have installed `hub` using Homebrew, its completions may not be on your `$FPATH` if you are using the system `zsh`. Homebrew installs `zsh` completion definitions to `/usr/local/share/zsh/site-functions`, which on `$FPATH` for the Homebrew-installed `zsh`, but not for the system `zsh`. If you want it to work with the system `zsh`, add this to your `~/.zshrc` before it sources `oh-my-zsh.sh`.
+
+```zsh
+if (( ! ${fpath[(I)/usr/local/share/zsh/site-functions]} )); then
+ FPATH=/usr/local/share/zsh/site-functions:$FPATH
+fi
+```