commit 4e8d707feaa86222325f94861bf1d7d57b44f659 parent 2eb015f85ad09584143278b1a39a7b940f96d11e Author: kar <kar@13f0.net> Date: Sun, 25 Aug 2024 15:15:20 -0400 add zsh autocomplete script Diffstat:
| A | contrib/autocomplete.zsh | | | 10 | ++++++++++ |
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/contrib/autocomplete.zsh b/contrib/autocomplete.zsh @@ -0,0 +1,10 @@ +#compdef angou + +_files() { + files=("${(f)$(find ${ANGOU_DIR:-$HOME/.angou} -type f -printf '%P\n' | sort)}") + _multi_parts / files +} + +_arguments \ + '1:angou commands:(copy edit generate help pass view)' \ + '2:passwords:_files'