diff options
| author | kar <kar@13f0.net> | 2024-08-25 16:21:08 -0400 |
|---|---|---|
| committer | kar <kar@13f0.net> | 2024-08-25 16:21:08 -0400 |
| commit | 1d32cffa061847479c31f4192659102355a8d990 (patch) | |
| tree | 57e852d17a2c74203fa04b16fc8774296c37ec73 /contrib | |
| parent | 4e8d707feaa86222325f94861bf1d7d57b44f659 (diff) | |
don't overwrite _files function, breaks autocomplete for others
Diffstat (limited to 'contrib')
| -rw-r--r-- | contrib/autocomplete.zsh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/autocomplete.zsh b/contrib/autocomplete.zsh index 67eebc5..776a9c7 100644 --- a/contrib/autocomplete.zsh +++ b/contrib/autocomplete.zsh | |||
| @@ -1,10 +1,10 @@ | |||
| 1 | #compdef angou | 1 | #compdef angou |
| 2 | 2 | ||
| 3 | _files() { | 3 | passwords() { |
| 4 | files=("${(f)$(find ${ANGOU_DIR:-$HOME/.angou} -type f -printf '%P\n' | sort)}") | 4 | files=("${(f)$(find ${ANGOU_DIR:-$HOME/.angou} -type f -printf '%P\n' | sort)}") |
| 5 | _multi_parts / files | 5 | _multi_parts / files |
| 6 | } | 6 | } |
| 7 | 7 | ||
| 8 | _arguments \ | 8 | _arguments \ |
| 9 | '1:angou commands:(copy edit generate help pass view)' \ | 9 | '1:angou commands:(copy edit generate help pass view)' \ |
| 10 | '2:passwords:_files' | 10 | '2:passwords:passwords' |
