PageRenderTime 1882ms CodeModel.GetById 139ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 1738ms

/bash_completion_lib/include/_pg_databases

http://github.com/brinkman83/bashrc
#! | 6 lines | 6 code | 0 blank | 0 comment | 0 complexity | f76236840ffe882f241499ec575d5ad9 MD5 | raw file
1_pg_databases() 
2{
3    COMPREPLY=( $( psql -l 2>/dev/null | \
4            sed -e '1,/^-/d' -e '/^(/,$d' | \
5            awk '{print $1}' | grep "^$cur" ) )
6}