make -name, -lname, -iname & -ilname complete on files in _find() and
change default completion from -o default to -o filenames
This commit is contained in:
parent
7861de5841
commit
ba9b87d9f2
@ -2,7 +2,7 @@
|
||||
#
|
||||
# <![CDATA[
|
||||
#
|
||||
# $Id: bash_completion,v 1.91 2002/02/06 17:05:12 ianmacd Exp $
|
||||
# $Id: bash_completion,v 1.92 2002/02/06 18:41:06 ianmacd Exp $
|
||||
#
|
||||
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
||||
#
|
||||
@ -397,7 +397,7 @@ _find()
|
||||
COMPREPLY=( $( compgen -W '0 1 2 3 4 5 6 7 8 9' ) )
|
||||
return 0
|
||||
;;
|
||||
-?(a)newer|-fls|-fprint?(0|f))
|
||||
-?(a)newer|-fls|-fprint?(0|f)|-?(i)?(l)name)
|
||||
COMPREPLY=( $( compgen -f $ncur ) )
|
||||
return 0
|
||||
;;
|
||||
@ -476,7 +476,7 @@ _find()
|
||||
|
||||
return 0
|
||||
}
|
||||
complete -F _find -o default find
|
||||
complete -F _find -o filenames find
|
||||
|
||||
# Linux ifconfig(8) completion
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user