diff options
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 |