svn commit: r454699 - in head/databases: . pspg

Christoph Moench-Tegeder cmt at burggraben.net
Wed Nov 22 19:13:32 UTC 2017


## Yuri Victorovich (yuri at FreeBSD.org):

> ==============================================================================
> --- /dev/null	00:00:00 1970	(empty, because file is newly added)
> +++ head/databases/pspg/pkg-message	Wed Nov 22 18:51:37 2017	(r454699)
> @@ -0,0 +1,7 @@
> +To use pspg as psql pager, add this alias:
> +
> +$ alias psql="env PAGER='pspg -bX' psql"

Methinks it would be even better to use psql's \setenv for this -
possibly in the user's ~/.psqlrc (that's what this file was invented
for). With the suggestion above you'd get rather mixed results if you'd
try to pass other environment variables with env from the interactive
shell (e.g. "env PGPORT=5433 psql") - that env wouldn't expand the
alias.

Regards,
Christoph (currently travelling on PostgreSQL business)

-- 
Spare Space.


More information about the svn-ports-all mailing list