-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add .psqlrc configuration file and copy it to the Docker image
- Loading branch information
1 parent
21d9609
commit 68bf992
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
-- Official docs: http://www.postgresql.org/docs/9.3/static/app-psql.html | ||
-- Unofficial docs: http://robots.thoughtbot.com/improving-the-command-line-postgres-experience | ||
|
||
-- Don't display the "helpful" message on startup. | ||
\set QUIET 1 | ||
\pset null '[NULL]' | ||
|
||
-- http://www.postgresql.org/docs/9.3/static/app-psql.html#APP-PSQL-PROMPTING | ||
\set PROMPT1 '%[%033[1m%]%M %n@%/%R%[%033[0m%]%# ' | ||
-- PROMPT2 is printed when the prompt expects more input, like when you type | ||
-- SELECT * FROM<enter>. %R shows what type of input it expects. | ||
\set PROMPT2 '[more] %R > ' | ||
|
||
-- Use best available output format | ||
\x auto | ||
\set VERBOSITY verbose | ||
\set HISTFILE ~/.psql_history- :DBNAME | ||
\set HISTCONTROL ignoredups | ||
\set COMP_KEYWORD_CASE upper | ||
\unset QUIET |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters