]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - psql/psqlrc.in
psql: add, postgresql configuration file
[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 -- Uppercase keywords when completing. Thanks to [1] (read on 2016-08-06).
29 -- [1]: http://phili.pe/posts/postgresql-on-the-command-line/
30 \set COMP_KEYWORD_CASE upper
31
32 -- "ignorespace ignoredups"
33 \set HISTCONTROL ignoreboth
34 -- Set path to history file and increase it.
35 \set HISTFILE HISTFILE_PATH
36 \set HISTSIZE 100000
37
38 -- But display the normal psql welcome message.
39 \set QUIET off