diff --git a/dot_zsh_functions b/dot_zsh_functions index c87b25c..6ccd05a 100644 --- a/dot_zsh_functions +++ b/dot_zsh_functions @@ -304,7 +304,8 @@ function gitpushallremote { done } function clone { - local folder=$(echo $1 | cut -d'/' -f2 | cut -d'.' -f1) + local folder=$(echo $1 | \grep -Eo '[a-zA-Z_-]+.git$' | cut -d'.' -f1) + echo "$folder" gcls "$1" cd "$folder" copyhooks