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:
parent
df7ca94009
commit
6a0667d2b6
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user