Logo
Explore Help
Sign In
h/fish-shell
1
Fork 0
You've already forked fish-shell
mirror of https://github.com/fish-shell/fish-shell.git synced 2026-04-30 09:31:15 -03:00
Code Issues Packages Projects Releases Wiki Activity
Files
165e0d0ed55747587fbc0e7439db74df7ec44e63
fish-shell/share/functions/__fish_complete_pg_database.fish

5 lines
132 B
Fish
Raw Normal View History

Mark private functions that don't need localization See the next commit. Part of #11833
2025-09-29 09:30:35 +02:00
# localization: skip(private)
Improve psql completions and add some related commands (#6620)
2020-02-28 11:16:41 +01: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 11:26:32 +01:00
psql -AtqwlXF \t 2>/dev/null | awk 'NF > 1 { print $1 }'
Improve psql completions and add some related commands (#6620)
2020-02-28 11:16:41 +01:00
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 108ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API