This website requires JavaScript.
Explore
Help
Register
Sign In
github-mirror
/
fish-shell
Watch
2
Star
0
Fork
0
You've already forked fish-shell
mirror of
https://github.com/fish-shell/fish-shell.git
synced
2024-12-21 15:24:05 +08:00
Code
Issues
Actions
4
Packages
Projects
Releases
Wiki
Activity
8dcde27e0b
fish-shell
/
share
/
functions
/
__fish_complete_pg_database.fish
4 lines
102 B
Fish
Raw
Normal View
History
Unescape
Escape
Improve psql completions and add some related commands (#6620)
2020-02-28 18:16:41 +08:00
function
__fish_complete_pg_database
Prevent loading of psqlrc when listing databases Users have the ability to override the way records are displayed in psql by changing the format[1] and linestyle[2] settings. These settings also affect the output of psql commands used for autocompletion, like listing databases and users - so they inadvertantly break Fish's completion. If we suppress the loading of psqlrc[3] the default settings are used instead. [1] https://www.postgresql.org/docs/current/app-psql.html#APP-PSQL-META-COMMAND-PSET-FORMAT [2] https://www.postgresql.org/docs/current/app-psql.html#APP-PSQL-META-COMMAND-PSET-LINESTYLE [3] https://www.postgresql.org/docs/current/app-psql.html#APP-PSQL-OPTION-NO-PSQLRC
2024-05-20 18:26:32 +08:00
psql
-AtqwlXF
\t
2
>
/dev/null
|
awk
'NF > 1 { print $1 }'
Improve psql completions and add some related commands (#6620)
2020-02-28 18:16:41 +08:00
end
Reference in New Issue
Copy Permalink