]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - psql/psqlrc.in
psql: mark NULL values
[config/dotfiles.git] / psql / psqlrc.in
1 -- Postgresql client configuration file.
2
3 -- Copyright (C) 2016  Simon Ruderich
4 --
5 -- This file is free software: you can redistribute it and/or modify
6 -- it under the terms of the GNU General Public License as published by
7 -- the Free Software Foundation, either version 3 of the License, or
8 -- (at your option) any later version.
9 --
10 -- This file is distributed in the hope that it will be useful,
11 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
12 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 -- GNU General Public License for more details.
14 --
15 -- You should have received a copy of the GNU General Public License
16 -- along with this file.  If not, see <http://www.gnu.org/licenses/>.
17
18
19 -- Shut up \pset during this config script.
20 \set QUIET on
21
22 -- Automatically switch to vertical mode when the columns don't fit on screen.
23 \pset expanded auto
24
25 -- Use unicode characters for borders.
26 \pset linestyle unicode
27
28 -- Per default NULL values are not displayed, use a replacement string to
29 -- prevent mistaken them for an empty string.
30 \pset null 「NULL」
31
32 -- Uppercase keywords when completing. Thanks to [1] (read on 2016-08-06).
33 -- [1]: http://phili.pe/posts/postgresql-on-the-command-line/
34 \set COMP_KEYWORD_CASE upper
35
36 -- "ignorespace ignoredups"
37 \set HISTCONTROL ignoreboth
38 -- Set path to history file and increase it.
39 \set HISTFILE HISTFILE_PATH
40 \set HISTSIZE 100000
41
42 -- But display the normal psql welcome message.
43 \set QUIET off