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|\ --connect_timeout|--max_allowed_packet|--prompt|\
--net_buffer_length|--select_limit|--max_join_size|\ --net_buffer_length|--select_limit|--max_join_size|\
--server-arg|--debug|--delimiter|--execute|-e|--pager|\ --server-arg|--debug|--delimiter|--execute|-e|--pager|\
--password|-p) --password|-p)
# Argument required but no completions available # Argument required but no completions available
return 0 return 0
;; ;;
@ -77,7 +77,8 @@ _mysql()
;; ;;
esac 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" ) ) -- "$cur" ) )
} && } &&
complete -F _mysql mysql complete -F _mysql mysql

View File

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