How to prevent message »Pager won't be used for less than 500 lines.«
The message comes from the execution of the \pset command, which you asked psql to execute upon start.
Change your .psqlrc file and tell psql to be quiet:
\set QUIET on
\pset pager_min_lines 500
\set QUIET off