[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 7ef06fb2df2ce5dd1b074a9f23a4c53d42c3bcd3

Ville Skyttä ville.skytta at iki.fi
Wed Feb 17 18:16:19 UTC 2010


The following commit has been merged in the master branch:
commit d7d8b2b206f50f44ef5bcad4091efc585da8c9be
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Wed Feb 17 19:57:32 2010 +0200

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

diff --git a/CHANGES b/CHANGES
index a6cdaaf..1ce2fcc 100644
--- a/CHANGES
+++ b/CHANGES
@@ -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.
diff --git a/contrib/perl b/contrib/perl
index ab8877b..7169add 100644
--- a/contrib/perl
+++ b/contrib/perl
@@ -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:

-- 
bash-completion



More information about the Bash-completion-commits mailing list