mirror of https://github.com/ohmyzsh/ohmyzsh.git
fix(git): fix directory parse from URL in `gccd` (#10276)
parent
07cdd7a539
commit
6ac1ff6905
|
@ -100,7 +100,7 @@ alias gcf='git config --list'
|
||||||
|
|
||||||
function gccd() {
|
function gccd() {
|
||||||
command git clone --recurse-submodules "$@"
|
command git clone --recurse-submodules "$@"
|
||||||
[[ -d "$_" ]] && cd "$_" || cd "${${_:h}%.git}"
|
[[ -d "$_" ]] && cd "$_" || cd "${${_:t}%.git}"
|
||||||
}
|
}
|
||||||
compdef _git gccd=git-clone
|
compdef _git gccd=git-clone
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue