diff --git a/.zshrc b/.zshrc index b600534..c5aea59 100644 --- a/.zshrc +++ b/.zshrc @@ -335,13 +335,25 @@ drweb() { alias gm='git checkout main && git merge' alias gc="git clone --recurse-submodule" gcl() { - git clone --depth=1 "https://github.com/$1" + if [ -z "$2" ]; then + git clone --depth=1 "https://github.com/$1" + else + git clone --depth=1 "https://github.com/$1" "$2" + fi } gck() { - git clone --recurse-submodules --depth=1 "https://git.k4li.de/$1" + if [ -z "$2" ]; then + git clone --recurse-submodules --depth=1 "https://git.k4li.de/$1" + else + git clone --recurse-submodules --depth=1 "https://git.k4li.de/$1" "$2" + fi } gcs() { - git clone --recurse-submodules --depth=1 "git@git.k4li.de:$1" + if [ -z "$2" ]; then + git clone --recurse-submodules --depth=1 "git@git.k4li.de:$1" + else + git clone --recurse-submodules --depth=1 "git@git.k4li.de:$1" "$2" + fi } alias gd="git diff" alias ga="gd $1 && git add"