diff --git a/README.md b/README.md index 71831c5..63f89ce 100644 --- a/README.md +++ b/README.md @@ -134,6 +134,7 @@ smart people at [Hashrocket](http://hashrocket.com/). - [Truncate Tables With Dependents](postgres/truncate-tables-with-dependents.md) - [Turning Timing On](postgres/turning-timing-on.md) - [Types By Category](postgres/types-by-category.md) +- [Use A psqlrc File For Common Settings](postgres/use-a-psqlrc-file-for-common-settings.md) - [Use Argument Indexes](postgres/use-argument-indexes.md) - [Using Intervals To Offset Time](postgres/using-intervals-to-offset-time.md) - [Who Is The Current User](postgres/who-is-the-current-user.md) diff --git a/postgres/use-a-psqlrc-file-for-common-settings.md b/postgres/use-a-psqlrc-file-for-common-settings.md new file mode 100644 index 0000000..59ee21a --- /dev/null +++ b/postgres/use-a-psqlrc-file-for-common-settings.md @@ -0,0 +1,12 @@ +# Use A psqlrc File For Common Settings + +There are a handful of settings that I inevitably turn on or configure each +time I open up a `psql` session. I can save myself a little time and sanity +by configuring these things in a `.psqlrc` dotfile that is located in my +home directory. Here is what my `~/.psqlrc` file currently looks like: + +``` +\x auto +\timing +\pset null 'Ø' +```