Installation of info completion should not depend on OS.

This commit is contained in:
ianmacd 2005-07-07 21:41:15 +00:00
parent 0b319276c4
commit 4c3eaa88a2

View File

@ -1,6 +1,6 @@
# bash_completion - some programmable completion functions for bash 2.05b
#
# $Id: bash_completion,v 1.796 2005/07/07 23:35:09 ianmacd Exp $
# $Id: bash_completion,v 1.797 2005/07/07 23:41:15 ianmacd Exp $
#
# Copyright (C) Ian Macdonald <ian@caliban.org>
#
@ -6664,8 +6664,7 @@ _xmms()
# info(1) completion
#
[ $UNAME = GNU -o $UNAME = Linux -o $UNAME = Darwin \
-o $UNAME = FreeBSD -o $UNAME = SunOS -o $UNAME = Cygwin ] &&
have info &&
_info()
{
local cur infopath UNAME
@ -6712,9 +6711,7 @@ _info()
return 0
}
[ $UNAME = GNU -o $UNAME = Linux -o $UNAME = Darwin \
-o $UNAME = FreeBSD -o $UNAME = SunOS -o $UNAME = Cygwin ] && \
complete -F _info $filenames info
[ "${have:-}" ] && complete -F _info $filenames info
# dhclient(1) completion
#