X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=psql%2Fpsqlrc.in;h=8396dfda4427eff38141b0220c73ba0f6dbd08de;hb=09aedd869ed40adcafe1640c01ddf5252f666aa7;hp=8733b4f284752362cb242d5bde8d41bf2b3b2a36;hpb=8a793a31d6328feb328a501ab3222add8f0bb903;p=config%2Fdotfiles.git diff --git a/psql/psqlrc.in b/psql/psqlrc.in index 8733b4f..8396dfd 100644 --- a/psql/psqlrc.in +++ b/psql/psqlrc.in @@ -25,6 +25,10 @@ -- Use unicode characters for borders. \pset linestyle unicode +-- Per default NULL values are not displayed, use a replacement string to +-- prevent mistaken them for an empty string. +\pset null ï½¢NULLï½£ + -- Uppercase keywords when completing. Thanks to [1] (read on 2016-08-06). -- [1]: http://phili.pe/posts/postgresql-on-the-command-line/ \set COMP_KEYWORD_CASE upper @@ -35,5 +39,9 @@ \set HISTFILE HISTFILE_PATH \set HISTSIZE 100000 +-- Add transaction status (%x) to prompt. +\set PROMPT1 '%x%/%R%# ' +\set PROMPT2 :PROMPT1 + -- But display the normal psql welcome message. \set QUIET off