commit 1d32cffa061847479c31f4192659102355a8d990
parent 4e8d707feaa86222325f94861bf1d7d57b44f659
Author: kar <kar@13f0.net>
Date: Sun, 25 Aug 2024 16:21:08 -0400
don't overwrite _files function, breaks autocomplete for others
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/contrib/autocomplete.zsh b/contrib/autocomplete.zsh
@@ -1,10 +1,10 @@
#compdef angou
-_files() {
+passwords() {
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'
+ '2:passwords:passwords'