completion/systemd-delta,-resolve: autocomplete with parameters

This commit is contained in:
Luca Boccassi 2021-06-22 14:55:22 +01:00
parent df7ca94009
commit 6a0667d2b6
2 changed files with 2 additions and 2 deletions

View file

@ -48,7 +48,7 @@ _systemd-delta() {
return 0
fi
if [[ "$cur" = -* ]]; then
if [[ "$cur" = -* ]] || [[ -z ${comps-} ]]; then
COMPREPLY=( $(compgen -W '${OPTS[*]}' -- "$cur") )
return 0
fi

View file

@ -71,7 +71,7 @@ _systemd-resolve() {
return 0
fi
if [[ "$cur" = -* ]]; then
if [[ "$cur" = -* ]] || [[ -z ${comps-} ]]; then
COMPREPLY=( $(compgen -W '${OPTS[*]}' -- "$cur") )
return 0
fi