[Bash-completion-commits] ./current r1137: disabled completion of PostgreSQL users and databases
David Paleino
d.paleino at gmail.com
Mon Jun 23 09:46:30 UTC 2008
------------------------------------------------------------
revno: 1137
committer: David Paleino <d.paleino at gmail.com>
branch nick: current
timestamp: Mon 2008-06-23 11:46:30 +0200
message:
disabled completion of PostgreSQL users and databases
modified:
bash_completion
debian/changelog
-------------- next part --------------
=== modified file 'bash_completion'
--- a/bash_completion 2008-06-23 09:44:42 +0000
+++ b/bash_completion 2008-06-23 09:46:30 +0000
@@ -4054,6 +4054,7 @@
have psql && {
_pg_databases()
{
+ return
COMPREPLY=( $( psql -l 2>/dev/null | \
sed -e '1,/^-/d' -e '/^(/,$d' | \
awk '{print $1}' | grep "^$cur" ) )
@@ -4061,9 +4062,10 @@
_pg_users()
{
- COMPREPLY=( $( psql -qtc 'select usename from pg_user' template1 2>/dev/null | \
- grep "^ $cur" ) )
- [ ${#COMPREPLY[@]} -eq 0 ] && COMPREPLY=( $( compgen -u -- $cur ) )
+ #COMPREPLY=( $( psql -qtc 'select usename from pg_user' template1 2>/dev/null | \
+ # grep "^ $cur" ) )
+ #[ ${#COMPREPLY[@]} -eq 0 ] && COMPREPLY=( $( compgen -u -- $cur ) )
+ COMPREPLY=( $( compgen -u -- $cur ) )
}
# createdb(1) completion
=== modified file 'debian/changelog'
--- a/debian/changelog 2008-06-23 09:44:42 +0000
+++ b/debian/changelog 2008-06-23 09:46:30 +0000
@@ -10,8 +10,9 @@
- _known_hosts(): use files from UserKnownHostsFile options in
addition to standard ones.
- fixed _command() to correctly prune the command line
+ - disabled completion of PostgreSQL users and databases
- -- David Paleino <d.paleino at gmail.com> Mon, 23 Jun 2008 11:44:08 +0200
+ -- David Paleino <d.paleino at gmail.com> Mon, 23 Jun 2008 11:45:52 +0200
bash-completion (20080617.3) unstable; urgency=low
More information about the Bash-completion-commits
mailing list