aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-03-01 02:07:25 +0100
committerLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-03-01 02:07:25 +0100
commit8a3d950321b7fc935015886dce31ff2c9f9b7840 (patch)
tree1427fe75714c57b3ae0a01a6faf3e95b86722940
parentcf650f755d0d4b006c5e0319c76c2d3aa7f1dce4 (diff)
downloadzuwu-8a3d950321b7fc935015886dce31ff2c9f9b7840.tar.gz
zuwu-8a3d950321b7fc935015886dce31ff2c9f9b7840.tar.bz2
zuwu-8a3d950321b7fc935015886dce31ff2c9f9b7840.tar.lz
zuwu-8a3d950321b7fc935015886dce31ff2c9f9b7840.zip

reintroduce: Reintroduce 14f3cd76a79497a2439902de9d5fb0e68d781d3b

-rwxr-xr-xzuwu.zsh6
1 files changed, 4 insertions, 2 deletions
diff --git a/zuwu.zsh b/zuwu.zsh
index 063e77c..f491c99 100755
--- a/zuwu.zsh
+++ b/zuwu.zsh
@@ -27,12 +27,14 @@ eval_append() {
if ! test compinit >/dev/null 2>/dev/null; then
eval_append ~/.zshrc "$(<<EOF
# The following lines were added by compinstall
-zstyle ':completion:*' completer _complete _ignored _correct
+zstyle ':completion:*' completer _complete _ignored _approximate
zstyle ':completion:*' format 'Completing %d'
zstyle ':completion:*' group-name ''
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
-zstyle ':completion:*' matcher-list 'm:{[:lower:]}={[:upper:]} m:{[:lower:][:upper:]}={[:upper:][:lower:]} r:|[._-]=** r:|=** l:|=*' '' '' ''
+zstyle ':completion:*' matcher-list 'm:{[:lower:]}={[:upper:]} m:{[:lower:][:upper:]}={[:upper:][:lower:]} r:|[._-]=** r:|=**' 'l:|=* r:|=*' '' ''
+zstyle ':completion:*' max-errors 2
+zstyle ':completion:*' prompt 'Correcting %e'
zstyle ':compinstall' filename "\$HOME/.zshrc"
autoload -Uz compinit