- default to file completion in perldoc, if current parameter contains
a slash
This commit is contained in:
parent
796401e090
commit
a4785d9f7f
@ -1,6 +1,6 @@
|
|||||||
# bash_completion - some programmable completion functions for bash 2.05b
|
# bash_completion - some programmable completion functions for bash 2.05b
|
||||||
#
|
#
|
||||||
# $Id: bash_completion,v 1.651 2003/11/12 10:10:52 ianmacd Exp $
|
# $Id: bash_completion,v 1.652 2003/11/12 10:19:52 ianmacd Exp $
|
||||||
#
|
#
|
||||||
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
||||||
#
|
#
|
||||||
@ -4074,6 +4074,9 @@ _perldoc()
|
|||||||
COMPREPLY=( $( compgen -W '-h -v -t -u -m -l -F -X -f -q' -- $cur ))
|
COMPREPLY=( $( compgen -W '-h -v -t -u -m -l -F -X -f -q' -- $cur ))
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
|
*/*)
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
_perlmodules
|
_perlmodules
|
||||||
COMPREPLY=( ${COMPREPLY[@]} $( compgen -W '$( PAGER=cat man perl 2>/dev/null | sed -ne "/perl.*Perl overview/,/perlwin32/s/^[^a-z0-9]*\([a-z0-9]*\).*$/\1/p")' -- $cur ) )
|
COMPREPLY=( ${COMPREPLY[@]} $( compgen -W '$( PAGER=cat man perl 2>/dev/null | sed -ne "/perl.*Perl overview/,/perlwin32/s/^[^a-z0-9]*\([a-z0-9]*\).*$/\1/p")' -- $cur ) )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user