diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-08 14:20:58 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-08 14:20:58 +0000 |
commit | 4a63761cf0b203cd1eab87aaad457b431e292b6a (patch) | |
tree | 58cca1351a41ffe7e36bf4b8d86ba3ee87ef2202 /Completion/User/_yp | |
parent | ab54bf2baa7c319954e6c58f9cce9a498b2205ac (diff) | |
download | zsh-4a63761cf0b203cd1eab87aaad457b431e292b6a.tar.gz zsh-4a63761cf0b203cd1eab87aaad457b431e292b6a.tar.xz zsh-4a63761cf0b203cd1eab87aaad457b431e292b6a.zip |
zsh-workers/7722
Diffstat (limited to 'Completion/User/_yp')
-rw-r--r-- | Completion/User/_yp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Completion/User/_yp b/Completion/User/_yp index 85d783b06..bf8090b6a 100644 --- a/Completion/User/_yp +++ b/Completion/User/_yp @@ -88,7 +88,11 @@ if [[ "$state" = map* ]]; then local expl _description expl 'map name' - compadd "$expl[@]" - "$_yp_cache_maps[@]" && ret=0 + + # The `-M ...' allows `pa.n<TAB>' to complete to `passwd.byname'. + + compadd "$expl[@]" -M 'l:.|by=by l:.|=by r:|.=* r:|=*' - \ + "$_yp_cache_maps[@]" && ret=0 if [[ $+options[-t] -eq 0 && "$state" != maponly ]]; then _description expl 'nicknames' compadd "$expl[@]" - "$_yp_cache_nicks[@]" && ret=0 |