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
Yogesh Lonkar
c3f51bed6f
Fix SC2199: Arrays implicitly concatenate in
2019-08-05 17:07:46 +02:00
Yogesh Lonkar
c5612e8cd2
Fix review comments
2019-08-05 16:58:04 +02:00
Yogesh Lonkar
d79d2a0424
Fix issue with source command completion
...
Avoid competion for bash builtin `source` and fallback to default implementation as it throws below error
```
-bash: source: --: invalid option
source: usage: source filename [arguments]
```
2019-07-24 16:08:47 +02:00
Yogesh Lonkar
fb1421d903
Fix duplicate completion of existing flag
2019-03-20 21:34:56 +05:30
Yogesh Lonkar
58a072d573
Add bash completion support for flags
2019-03-20 20:28:51 +05:30
688c5a9d4f
Merge branch 'master' into merging-jereksel-zsh
2017-08-03 14:38:20 -04:00
Tony
b9c5353920
Unset PROG variable to fix issue when mulitple apps run autocomplete from etc/bash_completion.d directory
2017-04-06 15:11:23 +02: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
Jille Timmermans
34639643ac
bash_autocomplete: Remove unused local variable prev
2015-10-28 14:39:36 +00:00
Kevin Klues
543102d9c3
Set default PROG in bash_autocomplete
...
By setting the default value of PROG to the basname of whatever the
filename is, we allow bash_autocomplete to be copied into
/etc/bash_completion.d without modification.
2015-08-28 18:25:37 -07:00
Yushi Nakai
742745ce19
add completion file for zsh
2014-06-19 01:06:23 +09:00
Summer Mousa
7544c56e3c
Added some documentation and bash integration code
2014-04-12 16:59:41 -05:00