Use compgen -W in postgresql databases completion (still disabled though).
This commit is contained in:
parent
7d19d2a106
commit
3e016e4679
@ -4131,10 +4131,10 @@ complete -F _gdb $default gdb
|
|||||||
have psql && {
|
have psql && {
|
||||||
_pg_databases()
|
_pg_databases()
|
||||||
{
|
{
|
||||||
return
|
return # intentionally disabled in 7ebed6af (TODO: why?)
|
||||||
COMPREPLY=( $( psql -l 2>/dev/null | \
|
COMPREPLY=( $( compgen -W "$( psql -l 2>/dev/null | \
|
||||||
sed -e '1,/^-/d' -e '/^(/,$d' | \
|
sed -e '1,/^-/d' -e '/^(/,$d' | \
|
||||||
awk '{print $1}' | grep "^$cur" ) )
|
awk '{print $1}' )" -- $cur ) )
|
||||||
}
|
}
|
||||||
|
|
||||||
_pg_users()
|
_pg_users()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user