[pass] Output to less (or another pager)

Are are at tysland.com
Mon Jan 19 14:05:46 CET 2015


Hi,

I am guessing I'm using pass a bit differently than most, and keep
something more like "information cards" than simple passwords in each
file. For this reason I only show the content.

In an environment where my terminals may be viewed by others, I would
prefer to not having my passwords listed in the scrollback buffer. The
easy solution to this is to pipe the command through a pager like
'less'. However, it would be better if this would be automatic and I
have patched the pass script to make use of the $PAGER variable - if it
exists and contain something sensible.

This might be interesting to more than me, so I attach the patch in the
hope it, or some version of it, makes it into the official version. :-)


-Are
-------------- next part --------------
A non-text attachment was scrubbed...
Name: password-store.sh.patch
Type: text/x-patch
Size: 655 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20150119/a2217518/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20150119/a2217518/attachment.asc>


More information about the Password-Store mailing list