mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
add clone_gh function
This commit is contained in:
parent
96e4e5dd03
commit
09cbfa0a52
1 changed files with 7 additions and 0 deletions
|
|
@ -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 #############################################################
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue