diff options
author | Ronaldo Maia <romaia@async.com.br> | 2013-10-02 14:33:58 -0300 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-10-04 23:28:01 -0700 |
commit | 3788f462b401e9661c5dd478817c01519e910844 (patch) | |
tree | af5625c08099c08f2c003c94a787c39f35bf208a /share | |
parent | 238bbfcbbb365867cfc57d0697413b6ba39c2421 (diff) |
Add postgres psql completion
Options and descriptions are from psql --help output. Database and username
completion based on the bash completion
Diffstat (limited to 'share')
-rw-r--r-- | share/completions/psql.fish | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/share/completions/psql.fish b/share/completions/psql.fish index a6c7c676..5b67a33d 100644 --- a/share/completions/psql.fish +++ b/share/completions/psql.fish @@ -14,18 +14,18 @@ complete -c psql --no-files -a '(__fish_complete_pg_database)' # General options: # -complete -c psql -s c -l command --description "run only single command (SQL or internal) and exit" -complete -c psql -s d -l dbname -a '(__fish_complete_pg_database)' --description "database name to connect to (default: "romaia")" -complete -c psql -s f -l file -r --description "execute commands from file, then exit" -complete -c psql -s l -l list --description "list available databases, then exit" +complete -c psql -s d -l dbname -a '(__fish_complete_pg_database)' --description "database name to connect to" +complete -c psql -s c -l command --description "run only single command (SQL or internal) and exit" +complete -c psql -s f -l file -r --description "execute commands from file, then exit" +complete -c psql -s l -l list --description "list available databases, then exit" # complete -c psql -s v -l set=, --variable=NAME=VALUE # set psql variable NAME to VALUE complete -c psql -s X -l no-psqlrc --description "do not read startup file (~/.psqlrc)" complete -c psql -s 1 -l single-transaction --description "execute command file as a single transaction" -complete -c psql -l help --description "show this help, then exit" -complete -c psql -l version --description "output version information, then exit" +complete -c psql -l help --description "show this help, then exit" +complete -c psql -l version --description "output version information, then exit" # # Input and output options: |