I'm trying to get my psql pager output to look nicer.
I've added the following to my ~/.bashrc
export PAGER='less -S'
And I've added these line to my ~/.psqlrc
\x auto \pset pager on \setenv PAGER less
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
\setenv PAGER less in
.psqlrc overwrites the environment variable with an undesirable different value (without the
Either remove it, or change it to
\setenv PAGER 'less -S', or create a new environment variable
LESS set to
Note that even when
less is not called with the
-S / --chop-long-lines option, hitting the right arrow key will scroll horizontally and temporarily display lines without wrapping them.