Created
February 18, 2012 19:03
-
-
Save emilyst/1860674 to your computer and use it in GitHub Desktop.
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
\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