From b27d899434f4d1f0e2dd748e3f661d8ec230f3f2 Mon Sep 17 00:00:00 2001 From: Ole Petter Date: Sun, 3 May 2020 12:10:39 +0200 Subject: [PATCH] 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 --- autocomplete/zsh_autocomplete | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autocomplete/zsh_autocomplete b/autocomplete/zsh_autocomplete index e2c7921212..cf39c888af 100644 --- a/autocomplete/zsh_autocomplete +++ b/autocomplete/zsh_autocomplete @@ -13,6 +13,8 @@ _cli_zsh_autocomplete() { if [[ "${opts[1]}" != "" ]]; then _describe 'values' opts + else + _files fi return