It seems a good idea to change grey psql output to a lovely rainbow in honor of IDAHOT day. Thankfully there is lolcat utility, which is very easy to install on Linux and Mac OS.

Linux

1
$ sudo snap install lolcat

Mac OS

1
$ brew install lolcat

Having lolcat installed, you can set it up as a psql pager and get lovely rainbow psql output!

1
2
\pset pager always
\setenv PAGER 'lolcat -f | less -iMSx4R -FX'

Comments