Skip to content
Snippets Groups Projects
Commit 3172ab24 authored by Chris Coley's avatar Chris Coley
Browse files

Adding a .psqlrc file

parent 79389e23
Branches
No related tags found
No related merge requests found
......@@ -65,3 +65,9 @@ ln -s $DOTFILES/git-prompt.sh ~/.git-prompt.sh
# PostgreSQL
if [ -h ~/.psqlrc ]
then rm ~/.psqlrc
else mv ~/.psqlrc{,.old} 2> /dev/null
fi
ln -s $DOTFILES/psqlrc ~/.psqlrc
psqlrc 0 → 100644
-- Don't show the contents of this file on psql startup
\set QUIET 1
-- Autocomplete keywords to uppercase
\set COMP_KEYWORD_CASE upper
-- Create a separate history file for each database
\set HISTFILE ~/.psql_history-:DBNAME
-- Ignore duplicate history entries
\set HISTCONTROL ignoredups
-- Force NULL to display as a character instead of empty
\pset null ¤
-- Show how long each query takes to execute
\timing on
-- Use horizontal/vertical column output based on content
\x auto
\unset QUIET
-- Useful aliases
\set version 'SELECT version();'
\set extensions 'SELECT * FROM pg_available_extensions;'
\set whoami 'SELECT CURRENT_USER;'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment