- test for dhclient before installing its completion function
This commit is contained in:
parent
cfb37aa9cd
commit
35b146a107
@ -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.745 2004/10/14 08:52:14 ianmacd Exp $
|
# $Id: bash_completion,v 1.746 2004/10/14 08:54:55 ianmacd Exp $
|
||||||
#
|
#
|
||||||
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
||||||
#
|
#
|
||||||
@ -6041,7 +6041,7 @@ complete -F _info $filenames info
|
|||||||
|
|
||||||
# dhclient(1) completion
|
# dhclient(1) completion
|
||||||
#
|
#
|
||||||
_dhclient()
|
have dhclient && _dhclient()
|
||||||
{
|
{
|
||||||
local cur prev
|
local cur prev
|
||||||
|
|
||||||
@ -6067,7 +6067,7 @@ _dhclient()
|
|||||||
_interfaces
|
_interfaces
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
complete -F _dhclient dhclient
|
[ "${have:-}" ] && complete -F _dhclient dhclient
|
||||||
|
|
||||||
# lvm(8) completion
|
# lvm(8) completion
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user