Indentation fixes.

This commit is contained in:
Ville Skyttä 2009-10-19 21:24:25 +03:00
parent e63121c2ff
commit 0b970c7477
8 changed files with 750 additions and 752 deletions

View File

@ -35,9 +35,8 @@ _svn()
return 0; return 0;
;; ;;
--encoding) --encoding)
COMPREPLY=( $( compgen -W \ COMPREPLY=( $( compgen -W '$( iconv --list | \
'$( iconv --list | sed -e "s@//@@;" )' \ sed -e "s@//@@;" )' -- "$cur" ) )
-- "$cur" ) )
return 0; return 0;
;; ;;
--@(editor|diff|diff3)-cmd) --@(editor|diff|diff3)-cmd)
@ -222,12 +221,10 @@ _svn()
--revision --force' --revision --force'
;; ;;
resolved) resolved)
options='--targets -R --recursive -q \ options='--targets -R --recursive -q --quiet'
--quiet'
;; ;;
revert) revert)
options='--targets -R --recursive -q \ options='--targets -R --recursive -q --quiet'
--quiet'
;; ;;
@(status|stat|st)) @(status|stat|st))
options='-u --show-updates -v \ options='-u --show-updates -v \

View File

@ -1,6 +1,7 @@
# bash completion for ant # bash completion for ant
have ant && { have ant &&
{
_ant() _ant()
{ {
local cur prev buildfile i local cur prev buildfile i
@ -23,8 +24,7 @@ _ant()
return 0 return 0
;; ;;
-nice) -nice)
COMPREPLY=( $( compgen -W '1 2 3 4 5 6 7 8 9 10' \ COMPREPLY=( $( compgen -W '1 2 3 4 5 6 7 8 9 10' -- "$cur" ) )
-- "$cur" ) )
return 0 return 0
;; ;;
-lib|-logger|-listener|-D|-inputhandler|-main) -lib|-logger|-listener|-D|-inputhandler|-main)
@ -54,10 +54,9 @@ _ant()
# parse buildfile for targets # parse buildfile for targets
# some versions of sed complain if there's no trailing linefeed, # some versions of sed complain if there's no trailing linefeed,
# hence the 2>/dev/null # hence the 2>/dev/null
COMPREPLY=( $( compgen -W "$( cat $buildfile | \ COMPREPLY=( $( compgen -W "$( cat $buildfile | tr "'\t\n>" "\" \n" | \
tr "'\t\n>" "\" \n" | \ sed -ne 's/.*<target .*name="\([^"]*\).*/\1/p' 2>/dev/null )" \
sed -ne 's/.*<target .*name="\([^"]*\).*/\1/p' \ -- "$cur" ) )
2>/dev/null )" -- "$cur" ) )
fi fi
} }
have complete-ant-cmd.pl && \ have complete-ant-cmd.pl && \

View File

@ -41,7 +41,8 @@ _module_avail ()
} }
# A completion function for the module alias # A completion function for the module alias
_module () { _module ()
{
local cur prev options local cur prev options
COMPREPLY=() COMPREPLY=()

View File

@ -1,6 +1,7 @@
# ssh(1) completion # ssh(1) completion
have ssh && { have ssh &&
{
_ssh_options() { _ssh_options() {
COMPREPLY=( $( compgen -W 'AddressFamily BatchMode BindAddress \ COMPREPLY=( $( compgen -W 'AddressFamily BatchMode BindAddress \
@ -65,8 +66,7 @@ _ssh()
;; ;;
-b) -b)
COMPREPLY=( $( compgen -W "$(/sbin/ifconfig | \ COMPREPLY=( $( compgen -W "$(/sbin/ifconfig | \
awk '/adr:/ {print $2}' | \ awk '/adr:/ {print $2}' | awk -F: '{print $2}' )" -- "$cur" ) )
awk -F: '{print $2}' )" -- "$cur" ) )
return 0 return 0
;; ;;
esac esac
@ -225,7 +225,8 @@ complete -F _scp $nospace scp sshfs
# ssh-copy-id(1) completion # ssh-copy-id(1) completion
# #
_ssh_copy_id() { _ssh_copy_id()
{
local cur prev local cur prev
COMPREPLY=() COMPREPLY=()