[Bash-completion-commits] [SCM] bash-completion branch, master, updated. fd8ade00774b26ccfb3466f58c4d67cd09b2af15
Guillaume Rousse
Guillaume.Rousse at inria.fr
Sun Nov 7 00:16:24 UTC 2010
The following commit has been merged in the master branch:
commit 1f0dd273f7604bf0102987b64894250c31a66bac
Author: Guillaume Rousse <Guillaume.Rousse at inria.fr>
Date: Sat Nov 6 23:42:38 2010 +0100
no need for usage output
diff --git a/completions/helpers/perldoc b/completions/helpers/perldoc
index 2b7b7eb..6e7a16d 100755
--- a/completions/helpers/perldoc
+++ b/completions/helpers/perldoc
@@ -84,16 +84,6 @@ sub get_function_suggestions {
return grep { /$func_rx/ } @suggestion;
}
-sub usage {
- die map "\n$_\n", (
- "To use, issue the following command in bash:",
- "\tcomplete -C perldoc-complete -o nospace -o default perldoc",
- "You probably want to put that line in your ~/.bashrc file.\n",
- );
-}
-
-usage() if not exists $ENV{'COMP_LINE'};
-
my ( $cmd, @arg ) = get_command_line();
my $word = pop @arg;
--
bash-completion
More information about the Bash-completion-commits
mailing list