Thank, the workaround with `complete -F` is perfectly fine for me! 2018-06-05 12:21 GMT+03:00 Timmo Verlaan <tverl...@gmail.com>:
> 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@lists.zx2c4.com > https://lists.zx2c4.com/mailman/listinfo/password-store > > > > _______________________________________________ > Password-Store mailing list > Password-Store@lists.zx2c4.com > https://lists.zx2c4.com/mailman/listinfo/password-store > >
_______________________________________________ Password-Store mailing list Password-Store@lists.zx2c4.com https://lists.zx2c4.com/mailman/listinfo/password-store