`pass less` with timeout
Timmo Verlaan
tverlaan at gmail.com
Tue Jun 5 11:21:52 CEST 2018
Hi Danylo,
This is an excellent idea! Your implementation will probably not be
added this way since it will add two more dependencies to pass (timeout
& less). However you could easily add it as an extension:
https://www.passwordstore.org/#extensions. This would enable bash
completion again AFAIK.
Another option to get bash completion is to add something like this to
your bashrc:
if type _pass &> /dev/null; then
complete -o default -o nospace -F _pass passless;
fi;
A third option is to implement this functionality using bash scripting
and sleep. I'll see if I can come up with something. No promises
though :-)
Kind regards,
Timmo Verlaan
On Thu, May 24, 2018, at 14:21, Danylo Hlynskyi wrote:
> There is a little usecase that I use for credit cards secrets.
> Basically, I save credit card details and secrets as a multiline
> password. So I can't just `pass show -c my/credit/card` because I
> can't paste it into any webform.>
> Also, I don't want to `pass show my/credit/card` because this precious
> info now sits in my terminal scrollback. Urgh.>
> What I want is to `pass show` with a timeout, so information is
> visible for some time, but eventually disappears. So I have time to
> copypaste details into webform.>
> I've created a small function for this:
>
> function passless {
> pass show "$@" | timeout --foreground 30s less
> }
>
> It doesn't leave traces of secret in terminal scrollback and exits
> automatically in 30 sec.>
> What do you think about adding first class support for such a feature?
> The problem with my function is it doesn't have autocomplete - a huge
> drawback in usability.> Or maybe there are better ways to store-and-fetch credit card info in
> password-store?> _________________________________________________
> Password-Store mailing list
> Password-Store at lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/password-store
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20180605/ca451e51/attachment.html>
More information about the Password-Store
mailing list