Include *.pl, *.pm, and *.pod files in perldoc completions.

This commit is contained in:
Ville Skyttä 2010-02-17 19:57:32 +02:00
parent 59977e4bf8
commit d7d8b2b206
2 changed files with 5 additions and 4 deletions

View File

@ -26,9 +26,9 @@ bash-completion (2.x)
* Apply pine completion to alpine too.
* Remove many unnecessary short option completions where long ones exist.
* Improve chsh, chgrp, chown, configure, cvs, gkrellm, gzip, lftp, look,
make, mdadm, modprobe, mplayer, mysqladmin, rsync, screen, service, scp,
ssh, sshfs, update-alternatives, vncviewer, yp-tools, and general hostname
completions.
make, mdadm, modprobe, mplayer, mysqladmin, perldoc, rsync, screen,
service, scp, ssh, sshfs, update-alternatives, vncviewer, yp-tools, and
general hostname completions.
* Add abook and wtf completion, based on work by Raphaël Droz.
* Add cvsps, dragon, fusermount, jarsigner, k3b, lftpget, pm-utils, rtcwake,
pack200, unpack200, pbzip2, pbunzip2, pbzcat, pigz and unpigz completions.

View File

@ -114,9 +114,10 @@ _perldoc()
sed -ne "/perl.*Perl overview/,/perlwin32/p" | \
awk "\$NF=2 { print \$1}" | command grep perl )' -- "$cur" ) )
fi
_filedir '@(pl|PL|pm|PM|pod|POD)'
fi
}
complete -F _perldoc -o default perldoc
complete -F _perldoc -o bashdefault perldoc
}
# Local variables: