mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 15:30:40 +01:00
fix(git): fix directory parse from URL in gccd (#10276)
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user