From 00f7e63d74ccb670fcc5a29faf985365814127cd Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Sat, 13 Nov 2021 04:19:16 -0800 Subject: [PATCH] zsh: bug fix in gloned() --- .zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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