1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-08 20:58:20 +03:00

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