[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-380-g9e4605b
Ville Skyttä
ville.skytta at iki.fi
Sat Jun 18 12:54:02 UTC 2011
The following commit has been merged in the master branch:
commit abfc29f8a0c691d51eed9e9d15a0f2bad1d6ee59
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Sat Jun 18 15:27:15 2011 +0300
mysql, sitecopy: Indentation and line wrapping fixes.
diff --git a/completions/mysql b/completions/mysql
index b4fb576..00344b5 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 6c0db01..9e21764 100644
--- a/completions/sitecopy
+++ b/completions/sitecopy
@@ -1,6 +1,6 @@
# sitecopy(1) completion
# Copyright 2003 Eelco Lempsink <eelcolempsink at gmx.net>
-# 2011 Raphaël Droz <raphael.droz+floss at gmail.com>
+# 2011 Raphaël Droz <raphael.droz+floss at 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
} &&
--
bash-completion
More information about the Bash-completion-commits
mailing list