mirror of
https://github.com/x-motemen/ghq.git
synced 2026-09-10 07:26:27 -04:00
fix(completion): does not suggest repositories after the --branch option
This commit is contained in:
parent
e3f7e3d035
commit
4e51d4d660
|
|
@ -20,10 +20,13 @@ _ghq() {
|
|||
return 0
|
||||
fi
|
||||
case "$prev" in
|
||||
--vcs)
|
||||
COMPREPLY=( $(compgen -W "$vcs_backends" -- "$cur") );;
|
||||
--branch|-b)
|
||||
# expects branch name
|
||||
;;
|
||||
--partial)
|
||||
COMPREPLY=( $(compgen -W "blobless treeless" -- "$cur") );;
|
||||
--vcs)
|
||||
COMPREPLY=( $(compgen -W "$vcs_backends" -- "$cur") );;
|
||||
*)
|
||||
local arg
|
||||
for arg in "${words[@]}"; do
|
||||
|
|
|
|||
Loading…
Reference in a new issue