[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 76cf12bc190035740387d4b45e64f53aef5bb4e7

Ville Skyttä ville.skytta at iki.fi
Fri Nov 19 20:14:16 UTC 2010


The following commit has been merged in the master branch:
commit 76cf12bc190035740387d4b45e64f53aef5bb4e7
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Fri Nov 19 22:09:00 2010 +0200

    Add perl -d: completion.

diff --git a/completions/perl b/completions/perl
index 4b506fc..843e249 100644
--- a/completions/perl
+++ b/completions/perl
@@ -61,6 +61,15 @@ _perl()
             fi
             return 0
             ;;
+        -d|-dt)
+            if [[ $cur == :* ]]; then
+                temp="${cur#:}"
+                prefix="$prefix${cur%$temp}"
+                cur="Devel::$temp"
+                _perlmodules $1
+            fi
+            return 0
+            ;;
     esac
 
     if [[ "$cur" == -* ]]; then

-- 
bash-completion



More information about the Bash-completion-commits mailing list