diff options
| author | Tuowen Zhao <ztuowen@gmail.com> | 2018-09-10 10:50:45 -0600 | 
|---|---|---|
| committer | Tuowen Zhao <ztuowen@gmail.com> | 2018-09-10 10:50:45 -0600 | 
| commit | 5ece6ef2f07c58672a9c965dbbbb62a42386fb2d (patch) | |
| tree | 285e6382f9e900779bce60da02f1f0d97e467e26 /plugins/github | |
| parent | 852e7fe005267f74f3c04a4ddbb310522eee8014 (diff) | |
| parent | fe5fe81c8cfa66981c51d149a35fe545f2ef5016 (diff) | |
| download | zsh-5ece6ef2f07c58672a9c965dbbbb62a42386fb2d.tar.gz zsh-5ece6ef2f07c58672a9c965dbbbb62a42386fb2d.tar.bz2 zsh-5ece6ef2f07c58672a9c965dbbbb62a42386fb2d.zip  | |
Merge branch 'master' of https://github.com/robbyrussell/oh-my-zsh
Diffstat (limited to 'plugins/github')
| -rw-r--r-- | plugins/github/README.md | 6 | ||||
| -rw-r--r-- | plugins/github/github.plugin.zsh | 6 | 
2 files changed, 6 insertions, 6 deletions
diff --git a/plugins/github/README.md b/plugins/github/README.md index fea607876..2b66e390f 100644 --- a/plugins/github/README.md +++ b/plugins/github/README.md @@ -11,14 +11,14 @@ This plugin supports working with GitHub from the command line. It provides a fe  * `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) +* `git.io` - Shortens a URL using [git.io](https://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. +[Hub](https://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. +The [`github` Ruby gem](https://github.com/defunkt/github-gem) needs to be installed if you want to use it.  ###  Configuration diff --git a/plugins/github/github.plugin.zsh b/plugins/github/github.plugin.zsh index 077f07bd4..8e4b97352 100644 --- a/plugins/github/github.plugin.zsh +++ b/plugins/github/github.plugin.zsh @@ -1,4 +1,4 @@ -# Set up hub wrapper for git, if it is available; http://github.com/github/hub +# Set up hub wrapper for git, if it is available; https://github.com/github/hub  if (( $+commands[hub] )); then    alias git=hub  fi @@ -36,7 +36,7 @@ new_gh() { # [DIRECTORY]    print '.*'"\n"'*~' >> .gitignore    git add [^.]* \      || return -  git add .gitignore \ +  git add -f .gitignore \      || return    git commit -m 'Initial commit.' \      || return @@ -63,7 +63,7 @@ exist_gh() { # [DIRECTORY]  # git.io "GitHub URL"  #  # Shorten GitHub url, example: -#   https://github.com/nvogel/dotzsh    >   http://git.io/8nU25w   +#   https://github.com/nvogel/dotzsh    >   https://git.io/8nU25w  # source: https://github.com/nvogel/dotzsh  # documentation: https://github.com/blog/985-git-io-github-url-shortener  #  | 
