Indentation fixes.
This commit is contained in:
parent
e63121c2ff
commit
0b970c7477
@ -35,9 +35,8 @@ _svn()
|
||||
return 0;
|
||||
;;
|
||||
--encoding)
|
||||
COMPREPLY=( $( compgen -W \
|
||||
'$( iconv --list | sed -e "s@//@@;" )' \
|
||||
-- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '$( iconv --list | \
|
||||
sed -e "s@//@@;" )' -- "$cur" ) )
|
||||
return 0;
|
||||
;;
|
||||
--@(editor|diff|diff3)-cmd)
|
||||
@ -222,12 +221,10 @@ _svn()
|
||||
--revision --force'
|
||||
;;
|
||||
resolved)
|
||||
options='--targets -R --recursive -q \
|
||||
--quiet'
|
||||
options='--targets -R --recursive -q --quiet'
|
||||
;;
|
||||
revert)
|
||||
options='--targets -R --recursive -q \
|
||||
--quiet'
|
||||
options='--targets -R --recursive -q --quiet'
|
||||
;;
|
||||
@(status|stat|st))
|
||||
options='-u --show-updates -v \
|
||||
|
13
contrib/ant
13
contrib/ant
@ -1,6 +1,7 @@
|
||||
# bash completion for ant
|
||||
|
||||
have ant && {
|
||||
have ant &&
|
||||
{
|
||||
_ant()
|
||||
{
|
||||
local cur prev buildfile i
|
||||
@ -23,8 +24,7 @@ _ant()
|
||||
return 0
|
||||
;;
|
||||
-nice)
|
||||
COMPREPLY=( $( compgen -W '1 2 3 4 5 6 7 8 9 10' \
|
||||
-- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '1 2 3 4 5 6 7 8 9 10' -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
-lib|-logger|-listener|-D|-inputhandler|-main)
|
||||
@ -54,10 +54,9 @@ _ant()
|
||||
# parse buildfile for targets
|
||||
# some versions of sed complain if there's no trailing linefeed,
|
||||
# hence the 2>/dev/null
|
||||
COMPREPLY=( $( compgen -W "$( cat $buildfile | \
|
||||
tr "'\t\n>" "\" \n" | \
|
||||
sed -ne 's/.*<target .*name="\([^"]*\).*/\1/p' \
|
||||
2>/dev/null )" -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W "$( cat $buildfile | tr "'\t\n>" "\" \n" | \
|
||||
sed -ne 's/.*<target .*name="\([^"]*\).*/\1/p' 2>/dev/null )" \
|
||||
-- "$cur" ) )
|
||||
fi
|
||||
}
|
||||
have complete-ant-cmd.pl && \
|
||||
|
@ -41,7 +41,8 @@ _module_avail ()
|
||||
}
|
||||
|
||||
# A completion function for the module alias
|
||||
_module () {
|
||||
_module ()
|
||||
{
|
||||
local cur prev options
|
||||
|
||||
COMPREPLY=()
|
||||
|
@ -1,6 +1,7 @@
|
||||
# ssh(1) completion
|
||||
|
||||
have ssh && {
|
||||
have ssh &&
|
||||
{
|
||||
|
||||
_ssh_options() {
|
||||
COMPREPLY=( $( compgen -W 'AddressFamily BatchMode BindAddress \
|
||||
@ -65,8 +66,7 @@ _ssh()
|
||||
;;
|
||||
-b)
|
||||
COMPREPLY=( $( compgen -W "$(/sbin/ifconfig | \
|
||||
awk '/adr:/ {print $2}' | \
|
||||
awk -F: '{print $2}' )" -- "$cur" ) )
|
||||
awk '/adr:/ {print $2}' | awk -F: '{print $2}' )" -- "$cur" ) )
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
@ -225,7 +225,8 @@ complete -F _scp $nospace scp sshfs
|
||||
|
||||
# ssh-copy-id(1) completion
|
||||
#
|
||||
_ssh_copy_id() {
|
||||
_ssh_copy_id()
|
||||
{
|
||||
local cur prev
|
||||
|
||||
COMPREPLY=()
|
||||
|
Loading…
x
Reference in New Issue
Block a user