diff options
Diffstat (limited to 'Completion/Core')
-rw-r--r-- | Completion/Core/_path_files | 12 | ||||
-rw-r--r-- | Completion/Core/compinit | 14 |
2 files changed, 13 insertions, 13 deletions
diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files index 0f1ef01fe..993d0e89a 100644 --- a/Completion/Core/_path_files +++ b/Completion/Core/_path_files @@ -6,7 +6,7 @@ local linepath realpath donepath prepath testpath exppath local tmp1 tmp2 tmp3 tmp4 i orig pre suf tpre tsuf opre osuf cpre local pats haspats=no ignore group expl addpfx addsfx remsfx -local nm=$compstate[nmatches] menu match matcher mopts +local nm=$compstate[nmatches] menu match matcher mopts atmp typeset -U prepaths exppaths @@ -366,12 +366,12 @@ for prepath in "$prepaths[@]"; do fi else if [[ "$tmp3" = */* ]]; then + atmp=( -Qf "$mopts[@]" -p "$linepath$tmp4" + -W "$prepath$realpath$testpath" "$ignore[@]" + "$addpfx[@]" "$addsfx[@]" "$remsfx[@]" + -M "r:|/=* r:|=* $match" "$group[@]" "$expl[@]" ) for i in "$tmp1[@]"; do - compadd -Qf "$mopts[@]" -p "$linepath$tmp4" -s "/${i#*/}" \ - -W "$prepath$realpath$testpath" "$ignore[@]" \ - "$addpfx[@]" "$addsfx[@]" "$remsfx[@]" \ - -M "r:|/=* r:|=* $match" "$group[@]" "$expl[@]" \ - - "${i%%/*}" + compadd "$atmp[@]" -s "/${i#*/}" - "${i%%/*}" done else compadd -Qf "$mopts[@]" -p "$linepath$tmp4" \ diff --git a/Completion/Core/compinit b/Completion/Core/compinit index 0d99aadd5..57c7a97e2 100644 --- a/Completion/Core/compinit +++ b/Completion/Core/compinit @@ -485,13 +485,13 @@ compstyle() { # Default styles. This should be executed conditionally somehow. -compstyle '*' verbose 'yes' -compstyle '*' prefix-needed 'yes' -compstyle '*' prefix-hidden 'no' -compstyle ':correct' accept '2n' -compstyle ':correct' prompt 'correct to:' -compstyle '*' completer '_complete' -compstyle '*:default' list-colors no=0 fi=0 di=0 ln=0 pi=0 so=0 bd=0 cd=0 ex=0 +zstyle ':completion:*' verbose 'yes' +zstyle ':completion:*' prefix-needed 'yes' +zstyle ':completion:*' prefix-hidden 'no' +zstyle ':completion:correct' accept '2n' +zstyle ':completion:correct' prompt 'correct to:' +zstyle ':completion:*' completer '_complete' +zstyle ':completion*:default' list-colors no=0 fi=0 di=0 ln=0 pi=0 so=0 bd=0 cd=0 ex=0 # Now we automatically make the definition files autoloaded. |