summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-06-18 15:27:15 +0300
committerVille Skyttä <ville.skytta@iki.fi>2011-06-18 15:29:20 +0300
commitabfc29f8a0c691d51eed9e9d15a0f2bad1d6ee59 (patch)
tree5396e5e6ad0a9ac66887f8976f5b3f281697e012
parentf38453968c69472990fbfe77b3c08ca30b36d636 (diff)
downloadbash-completion-abfc29f8a0c691d51eed9e9d15a0f2bad1d6ee59.tar.gz
mysql, sitecopy: Indentation and line wrapping fixes.
-rw-r--r--completions/mysql5
-rw-r--r--completions/sitecopy8
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 <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
} &&