Commit Graph

8 Commits

Author SHA1 Message Date
Ihor Urazov
1150c2e180
Properly detect Zsh shell
There is no need to define custom shell var, when Zsh can be detected by
checking SHELL env var.
2022-04-19 16:25:16 -04:00
Ihor Urazov
f89647bd19
Simplify zsh completion
Completion file shouldn't be sourced. It should provide only completion
code (source of _command) for command. It's task for package manager or
user to put under $fpath.
2022-04-19 16:25:16 -04:00
Ole Petter
b27d899434
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>
2020-05-03 12:10:39 +02:00
Shengjing Zhu
748fe05362 Fix zsh completion scripts
This fix completion when argument startswith -
And prevent completing a space when no candidates
2020-02-10 01:43:36 +08:00
Felix Wong
e19c344a35
fix zsh autocomplete 2019-10-06 01:58:51 -07:00
Dan Buch
363d9c9a31
Add a hack so that zsh completion only runs for zsh 2016-07-24 17:29:13 -04:00
Andrzej Ressel
ceeebaba04 [PoC] Improve zsh autocompletions 2016-07-21 08:47:59 +02:00
Yushi Nakai
742745ce19 add completion file for zsh 2014-06-19 01:06:23 +09:00