Almost every psql query comes out an illegible mess if not preceded by display configuration commands such as \\x auto. Typing this manually for each psql instance
\\x auto
For me I add -q to turn that off for my psql command e.g.
psql postgresql://u:p@h:5432/db -q -c 'select 1' # connection string turn it off query