mysql, sitecopy: Indentation and line wrapping fixes.

This commit is contained in:
Ville Skyttä 2011-06-18 15:27:15 +03:00
parent f38453968c
commit abfc29f8a0
2 changed files with 7 additions and 6 deletions

View File

@ -48,7 +48,7 @@ _mysql()
--connect_timeout|--max_allowed_packet|--prompt|\
--net_buffer_length|--select_limit|--max_join_size|\
--server-arg|--debug|--delimiter|--execute|-e|--pager|\
--password|-p)
--password|-p)
# Argument required but no completions available
return 0
;;
@ -77,7 +77,8 @@ _mysql()
;;
esac
COMPREPLY=( $( compgen -W "$(mysqlshow 2>/dev/null|sed -ne '2d' -e 's/^|.\([^|]*\)|.*/\1/p')" \
COMPREPLY=( $( compgen -W \
"$(mysqlshow 2>/dev/null|sed -ne '2d' -e 's/^|.\([^|]*\)|.*/\1/p')" \
-- "$cur" ) )
} &&
complete -F _mysql mysql

View File

@ -1,6 +1,6 @@
# sitecopy(1) completion
# Copyright 2003 Eelco Lempsink <eelcolempsink@gmx.net>
# 2011 Raphaël Droz <raphael.droz+floss@gmail.com>
# 2011 Raphaël Droz <raphael.droz+floss@gmail.com>
# License: GNU GPL v2 or later
have sitecopy || return
@ -12,8 +12,8 @@ _sitecopy()
case $prev in
--debug|-d)
COMPREPLY=( $( compgen -W "socket files rcfile ftp http httpbody rsh sftp xml xmlparse cleartext" \
-- "$cur" ) )
COMPREPLY=( $( compgen -W "socket files rcfile ftp http httpbody
rsh sftp xml xmlparse cleartext" -- "$cur" ) )
compopt -o nospace
return 0
;;
@ -44,7 +44,7 @@ _sitecopy()
if [ -r ~/.sitecopyrc ]; then
COMPREPLY=( $( compgen -W "$($1 -v | \
command sed -n '/^Site:/s/Site: //p')" -- "$cur" ) )
command sed -n '/^Site:/s/Site: //p')" -- "$cur" ) )
fi
return 0
} &&