diff options
-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 |