- clean up superluous returns in _ipsec()
This commit is contained in:
parent
844c7bb6b2
commit
d29b19a324
@ -1,6 +1,6 @@
|
||||
# bash_completion - some programmable completion functions for bash 2.05a
|
||||
#
|
||||
# $Id: bash_completion,v 1.150 2002/02/27 00:29:54 ianmacd Exp $
|
||||
# $Id: bash_completion,v 1.151 2002/02/27 00:35:39 ianmacd Exp $
|
||||
#
|
||||
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
||||
#
|
||||
@ -516,7 +516,8 @@ _ifconfig()
|
||||
;;
|
||||
esac
|
||||
|
||||
COMPREPLY=( $( /sbin/ifconfig -a | sed -ne 's/^\('$cur'[^ ]*\).*$/\1/p' ))
|
||||
COMPREPLY=( $( /sbin/ifconfig -a | \
|
||||
sed -ne 's/^\('$cur'[^ ]*\).*$/\1/p' ))
|
||||
}
|
||||
[ $OS = Linux ] && complete -F _ifconfig ifconfig
|
||||
|
||||
@ -569,24 +570,19 @@ _ipsec()
|
||||
--replace --down --route --unroute \
|
||||
--ready --status --rereadsecrets' \
|
||||
$cur ) )
|
||||
return 0
|
||||
;;
|
||||
manual)
|
||||
COMPREPLY=( $( compgen -W '--up --down --route --unroute \
|
||||
--union' $cur ) )
|
||||
return 0
|
||||
;;
|
||||
ranbits)
|
||||
COMPREPLY=( $( compgen -W '--quick --continuous --bytes' $cur ) )
|
||||
return 0
|
||||
;;
|
||||
setup)
|
||||
COMPREPLY=( $( compgen -W '--start --stop --restart' $cur ) )
|
||||
return 0
|
||||
;;
|
||||
|
||||
*)
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user