From 3788f462b401e9661c5dd478817c01519e910844 Mon Sep 17 00:00:00 2001 From: Ronaldo Maia Date: Wed, 2 Oct 2013 14:33:58 -0300 Subject: [PATCH] Add postgres psql completion Options and descriptions are from psql --help output. Database and username completion based on the bash completion --- share/completions/psql.fish | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/share/completions/psql.fish b/share/completions/psql.fish index a6c7c6766..5b67a33d6 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: