fix(zsh_autocomplete): List files on tab with no completion options
This will simply list the files in the current directory if there are no auto-completion options available. With this change, the zsh auto-completion will align with the functionality in the bash auto-completion file provided. New functionality: https://asciinema.org/a/EAYRIEVGTGNSS2gCGwSJ4Zw1i Old functionality: https://asciinema.org/a/BfOZz4BHUGwjXMFptbmDHZocH Signed-off-by: Ole Petter <ole.orhagen@northern.tech>
This commit is contained in:
parent
464c868816
commit
b27d899434
@ -13,6 +13,8 @@ _cli_zsh_autocomplete() {
|
|||||||
|
|
||||||
if [[ "${opts[1]}" != "" ]]; then
|
if [[ "${opts[1]}" != "" ]]; then
|
||||||
_describe 'values' opts
|
_describe 'values' opts
|
||||||
|
else
|
||||||
|
_files
|
||||||
fi
|
fi
|
||||||
|
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user