Mac imgcat support for pass

Robin Laurén Robin.Lauren at
Tue Jul 25 11:41:38 CEST 2017


I just had a look inside pass for the first time ever and realised it could
generate QR codes and display them on a graphical Linux/UNIX terminal. To
display inline graphics on a Mac, one could use imgcat, often installed
along with the iTerm2 terminal. Adding imgcat support to pass would be as
simple as adding the following to the qrcode() function:

if type imgcat >/dev/null 2>&1; then
   echo -n "$1" | qrencode --size 10 -o - | imgcat

To make the function Apple-compatible using the default image viewer, one
would have to create a temporary file, open it with the `open` command, and
remove the file once the default image viewer is closed. Not something i'd
care to do :)

As i just joined this list, i don't know if this has been discussed here,
or if it's even anything you'd appreciate as an addition.

Thanks and regards,
 ~Robin Laurén @ reaktor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Password-Store mailing list