diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-03-15 01:12:06 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-03-15 01:12:06 +0800 |
| commit | 10ed02b8541a80e60f7ad9f9fb51f8070d6be525 (patch) | |
| tree | bfc034d1ad0c2d5567a53ece074932040dfb8d43 /scripts/deploy/completions/zsh.sh | |
| parent | 72f80ea51f25256d0c463c2f3dc3d8670cfc4634 (diff) | |
Add completions system for shell autocompletion
Diffstat (limited to 'scripts/deploy/completions/zsh.sh')
| -rw-r--r-- | scripts/deploy/completions/zsh.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/deploy/completions/zsh.sh b/scripts/deploy/completions/zsh.sh index 2b2a96b..dd1ff38 100644 --- a/scripts/deploy/completions/zsh.sh +++ b/scripts/deploy/completions/zsh.sh @@ -15,13 +15,13 @@ _jvn_completion() { fi args=( - -f "$buffer" + -f "${buffer//-/^}" -C "$cursor" - -w "$current_word" - -p "$previous_word" + -w "${current_word//-/^}" + -p "${previous_word//-/^}" -c "$command_name" -i "$word_index" - -a "${words[@]}" + -a "${(@)words//-/^}" ) suggestions=$(jvn_comp "${args[@]}" 2>/dev/null) |
