diff --git a/.zshrc b/.zshrc index 482d2a4..5bac703 100644 --- a/.zshrc +++ b/.zshrc @@ -425,7 +425,7 @@ # Git cLONE cD gloned() { - git clone "$1" + git clone "$1" || return $? if ! cd "$(echo "$1" | sed 's/\.git//g' | rev | cut -d '/' -f 1 | rev)";then echo 'Error: Could not `cd` into the repo' return 1