Skip to content

Instantly share code, notes, and snippets.

@yuki777
Created February 25, 2016 01:34
Show Gist options
  • Save yuki777/beba07bd6b954c5df311 to your computer and use it in GitHub Desktop.
Save yuki777/beba07bd6b954c5df311 to your computer and use it in GitHub Desktop.
~/.psqlrc
\set PROMPT2 ''
\set PROMPT1 '%[%033[1;33;40m%]-- psql(%`psql --version|cut -d " " -f3` on %`hostname`) %`date +%Y-%m-%d` %`date +%H:%M:%S` %n@%M:%>/%/ %x %#%[%033[0m%]\n'
\pset null '[NULL]'
\x auto
\set VERBOSITY verbose
\set HISTFILE ~/.psql_history- :DBNAME
\set HISTCONTROL ignoredups
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment