From abfc29f8a0c691d51eed9e9d15a0f2bad1d6ee59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sat, 18 Jun 2011 15:27:15 +0300 Subject: [PATCH] mysql, sitecopy: Indentation and line wrapping fixes. --- completions/mysql | 5 +++-- completions/sitecopy | 8 ++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/completions/mysql b/completions/mysql index b4fb5760..00344b59 100644 --- a/completions/mysql +++ b/completions/mysql @@ -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 diff --git a/completions/sitecopy b/completions/sitecopy index 6c0db016..9e21764d 100644 --- a/completions/sitecopy +++ b/completions/sitecopy @@ -1,6 +1,6 @@ # sitecopy(1) completion # Copyright 2003 Eelco Lempsink -# 2011 Raphaël Droz +# 2011 Raphaël Droz # 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 } &&