Skip to content

Commit

Permalink
fix(zsh_autocomplete): List files on tab with no completion options
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ole Petter committed May 3, 2020
1 parent 464c868 commit b27d899
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autocomplete/zsh_autocomplete
Expand Up @@ -13,6 +13,8 @@ _cli_zsh_autocomplete() {

if [[ "${opts[1]}" != "" ]]; then
_describe 'values' opts
else
_files
fi

return
Expand Down

0 comments on commit b27d899

Please sign in to comment.