diff options
author | Pavol Juhas <pavol.juhas@gmail.com> | 2014-03-17 19:48:10 -0400 |
---|---|---|
committer | Pavol Juhas <pavol.juhas@gmail.com> | 2014-03-17 19:48:10 -0400 |
commit | 6952105bfe1fd4121fd355dc5f8ec5e03de5541c (patch) | |
tree | 604e65e52df88e28f99f49b939aa9547eb009b1c /plugins/github | |
parent | ed19ffee5ecc0db6617c1ae753e515d60cb486c6 (diff) | |
parent | ca900216302aa1138c793971cf877b5d4e88fb06 (diff) | |
download | zsh-6952105bfe1fd4121fd355dc5f8ec5e03de5541c.tar.gz zsh-6952105bfe1fd4121fd355dc5f8ec5e03de5541c.tar.bz2 zsh-6952105bfe1fd4121fd355dc5f8ec5e03de5541c.zip |
Merge branch 'master' of https://github.com/robbyrussell/oh-my-zsh
Diffstat (limited to 'plugins/github')
-rw-r--r-- | plugins/github/github.plugin.zsh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/github/github.plugin.zsh b/plugins/github/github.plugin.zsh index 66a10cfdb..25b1a1e1b 100644 --- a/plugins/github/github.plugin.zsh +++ b/plugins/github/github.plugin.zsh @@ -84,5 +84,14 @@ exist_gh() { # [DIRECTORY] git push -u origin master } +# git.io "GitHub URL" +# +# Shorten GitHub url, example: +# https://github.com/nvogel/dotzsh > http://git.io/8nU25w +# source: https://github.com/nvogel/dotzsh +# documentation: https://github.com/blog/985-git-io-github-url-shortener +# +git.io() {curl -i -s http://git.io -F "url=$1" | grep "Location" | cut -f 2 -d " "} + # End Functions ############################################################# |