diff options
author | Frantisek Tobias <frantisek.tobias@nic.cz> | 2024-10-11 09:12:34 +0200 |
---|---|---|
committer | Aleš Mrázek <ales.mrazek@nic.cz> | 2024-12-20 22:24:22 +0100 |
commit | 56bf368ac66c632a7497944ee4c3431137b648e3 (patch) | |
tree | 5fbef7ca90098f69a66fade2d88bbb6ed92ee6c8 | |
parent | kresctl: tab-completion: enable config completion (diff) | |
download | knot-resolver-56bf368ac66c632a7497944ee4c3431137b648e3.tar.xz knot-resolver-56bf368ac66c632a7497944ee4c3431137b648e3.zip |
utils/shell-completion/client.bash: skip program name in COMP_WORDS
-rw-r--r-- | utils/shell-completion/client.bash | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/shell-completion/client.bash b/utils/shell-completion/client.bash index b3c19419..3a946dc4 100644 --- a/utils/shell-completion/client.bash +++ b/utils/shell-completion/client.bash @@ -13,9 +13,9 @@ _kresctl_completion() if [[ -z "$cur" ]] then # no word to complete, return all posible options - opts=$(kresctl completion --bash --space "${COMP_WORDS}") + opts=$(kresctl completion --bash --space "${cmd_words[@]:1}") else - opts=$(kresctl completion --bash "${COMP_WORDS}") + opts=$(kresctl completion --bash "${cmd_words[@]:1}") fi # if there is no completion from kresctl |