From 09cbfa0a526452ef68a89c9a9da9cdb5b3078ac5 Mon Sep 17 00:00:00 2001 From: Shuvalov Anton Date: Wed, 8 Oct 2014 02:39:23 +0400 Subject: [PATCH] add clone_gh function --- plugins/github/github.plugin.zsh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/github/github.plugin.zsh b/plugins/github/github.plugin.zsh index bd69b1bd..406e4a1c 100644 --- a/plugins/github/github.plugin.zsh +++ b/plugins/github/github.plugin.zsh @@ -93,5 +93,12 @@ exist_gh() { # [DIRECTORY] # git.io() {curl -i -s http://git.io -F "url=$1" | grep "Location" | cut -f 2 -d " "} +# clone_gh [AUTHOR/NAME_OF_REPO] [DIRECTORY] +# +# use this when clone repo +clone_gh() { # [AUTHOR/NAME_OF_REPO] + git clone git@github.com:${1}.git ${2} +} + # End Functions #############################################################