remove previous _command() completion function
updated release to 20010121
This commit is contained in:
parent
82cdf78ceb
commit
2bef4ccf1d
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# <![CDATA[
|
# <![CDATA[
|
||||||
#
|
#
|
||||||
# $Id: bash_completion,v 1.59 2002/01/18 16:54:22 ianmacd Exp $
|
# $Id: bash_completion,v 1.60 2002/01/21 04:58:42 ianmacd Exp $
|
||||||
#
|
#
|
||||||
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
||||||
#
|
#
|
||||||
@ -20,7 +20,7 @@
|
|||||||
# along with this program; if not, write to the Free Software Foundation,
|
# along with this program; if not, write to the Free Software Foundation,
|
||||||
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
# RELEASE: 20020115
|
# RELEASE: 20020121
|
||||||
|
|
||||||
[ -n "$DEBUG" ] && set -v
|
[ -n "$DEBUG" ] && set -v
|
||||||
# Set a couple of useful vars
|
# Set a couple of useful vars
|
||||||
@ -1363,24 +1363,6 @@ _cd()
|
|||||||
}
|
}
|
||||||
complete -F _cd -o filenames cd
|
complete -F _cd -o filenames cd
|
||||||
|
|
||||||
# A meta-command completion function, for commands like sudo, which often
|
|
||||||
# need to complete on a command, followed by a file-name
|
|
||||||
#
|
|
||||||
_command()
|
|
||||||
{
|
|
||||||
local cur
|
|
||||||
|
|
||||||
COMPREPLY=()
|
|
||||||
cur=${COMP_WORDS[COMP_CWORD]}
|
|
||||||
|
|
||||||
if [ $COMP_CWORD = 1 ]; then
|
|
||||||
COMPREPLY=( $( compgen -c $cur ) )
|
|
||||||
else
|
|
||||||
COMPREPLY=( $( compgen -f $cur ) )
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
complete -F _command -o filenames type nohup exec nice eval strace sudo gdb
|
|
||||||
|
|
||||||
# A meta-command completion function for commands like sudo(8), which need to
|
# A meta-command completion function for commands like sudo(8), which need to
|
||||||
# first complete on a command, then complete according to that command's own
|
# first complete on a command, then complete according to that command's own
|
||||||
# completion definition - currently not quite foolproof, but works well
|
# completion definition - currently not quite foolproof, but works well
|
||||||
|
Loading…
x
Reference in New Issue
Block a user