Unverified Commit 6ac1ff69 authored by Luka Markušić's avatar Luka Markušić Committed by GitHub

fix(git): fix directory parse from URL in `gccd` (#10276)

parent 07cdd7a5
......@@ -100,7 +100,7 @@ alias gcf='git config --list'
function gccd() {
command git clone --recurse-submodules "$@"
[[ -d "$_" ]] && cd "$_" || cd "${${_:h}%.git}"
[[ -d "$_" ]] && cd "$_" || cd "${${_:t}%.git}"
}
compdef _git gccd=git-clone
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment