Hello ports,
Thanks to a thread on misc@ I've found pspg: a pager designed for
tabular data. Unfortunately it doesn't ship with a manpage, but
is really easy to use. For example, to use it as pager for psql, set
PSQL_PAGER=pspg (or, even better, PSQL_PAGER='pspg -s20' for a cool
light theme ;-)
% pkg_info pspg
Information for inst:pspg-5.4.0
Comment:
UNIX pager optimized for tabular data
Description:
pspg is a UNIX pager designed to work with tables. It's written for
PostgreSQL, but MySQL or pgcli are supported too and can also be used as
CSV or TSV viewer.
Maintainer: Omar Polo <op@omarpolo.com>
WWW: https://github.com/okbob/pspg
Comments/OK?
Cheers,
Omar Polo
P.S.: I've used CONFIGURE_STYLE=gnu and a do-gen target because it
doesn't use autoheader, so CONFIGURE_STYLE=autoconf failed.
configure.ac needs to be tweaked because otherwise pspg ends up being
liked to both ports readline and base readline.
No comments:
Post a Comment