Skip to content

Instantly share code, notes, and snippets.

@emilyst
Created February 18, 2012 19:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emilyst/1860674 to your computer and use it in GitHub Desktop.
Save emilyst/1860674 to your computer and use it in GitHub Desktop.
\pset null 'NULL'
\set HISTFILE ~/.psql_history- :HOST - :DBNAME
\set HISTSIZE 100000
\timing
\encoding unicode
-- red prompt for live
\set PROMPT1 '%[%`(ps ho "%a" $PPID | grep -q _live) && echo -e "\\e[0;41m"`%]%/%R%#%[%033[m%] '
\set PROMPT2 '%[%`(ps ho "%a" $PPID | grep -q _live) && echo -e "\\e[0;41m"`%]%/%R%#%[%033[m%] '
\set PROMPT3 '%[%`(ps ho "%a" $PPID | grep -q _live) && echo -e "\\e[0;41m"`%]>>[%033[m%]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment