Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Nov 2017 20:13:27 +0100
From:      Christoph Moench-Tegeder <cmt@burggraben.net>
To:        Yuri Victorovich <yuri@FreeBSD.org>
Cc:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r454699 - in head/databases: . pspg
Message-ID:  <20171122191327.3gpal53oaemf44su@squirrel.exwg.net>
In-Reply-To: <201711221851.vAMIpbjF026196@repo.freebsd.org>
References:  <201711221851.vAMIpbjF026196@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
## Yuri Victorovich (yuri@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20171122191327.3gpal53oaemf44su>