This website requires JavaScript.
Explore
Help
Sign In
Mirrors
/
fish-shell
Watch
2
Star
0
Fork
You've already forked fish-shell
0
mirror of
https://github.com/fish-shell/fish-shell
synced
2024-12-27 13:23:09 +00:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
e2596d13cd
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 10:16:41 +00: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 10:26:32 +00:00
psql
-AtqwlXF
\t
2
>
/dev/null
|
awk
'NF > 1 { print $1 }'
Improve psql completions and add some related commands (#6620)
2020-02-28 10:16:41 +00:00
end
Reference in a new issue
Copy permalink