Clone recursive in gh helper

This commit is contained in:
Jake Howard 2018-01-06 15:12:41 +00:00
parent f373d91030
commit 438cadb3ae
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -15,9 +15,9 @@ alias gs="git status"
alias gd="git diff" alias gd="git diff"
gh() { gh() {
if [ $# -eq 1 ]; then if [ $# -eq 1 ]; then
command git clone git@github.com:RealOrangeOne/${1} && cd ${1} command git clone git@github.com:RealOrangeOne/${1} --recursive && cd ${1}
else else
command git clone git@github.com:${1}/${2} && cd ${2} command git clone git@github.com:${1}/${2} --recursive && cd ${2}
fi fi
} }