<div dir="ltr">Thank, the workaround with `complete -F` is perfectly fine for me!<br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-06-05 12:21 GMT+03:00 Timmo Verlaan <span dir="ltr"><<a href="mailto:tverlaan@gmail.com" target="_blank">tverlaan@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>





<div><div>Hi Danylo,<br></div>
<div><br></div>
<div>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: <a href="https://www.passwordstore.org/#extensions" target="_blank">https://www.<wbr>passwordstore.org/#extensions</a>. This would enable bash completion again AFAIK.<br></div>
<div><br></div>
<div>Another option to get bash completion is to add something like this to your bashrc:<br></div>
<div><br></div>
<div>if type _pass &> /dev/null; then<br></div>
<div>  complete -o default -o nospace -F _pass passless;<br></div>
<div>fi;<br></div>
<div><br></div>
<div>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 :-)<br></div>
<div><br></div>
<div>Kind regards,<br></div>
<div>Timmo Verlaan</div><div><div class="h5">
<div><br></div>
<div><br></div>
<div>On Thu, May 24, 2018, at 14:21, Danylo Hlynskyi wrote:<br></div>
</div></div><blockquote type="cite"><div><div class="h5"><div dir="ltr"><div><div><div><div><div><div><div>There is a little usecase that I use for credit cards secrets.<br></div>
<div>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.<br></div>
<div><br></div>
</div>
<div>Also, I don't want to `pass show my/credit/card` because this precious info now sits in my terminal scrollback. Urgh.<br></div>
<div><br></div>
</div>
<div>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.<br></div>
<div><br></div>
</div>
<div>I've created a small function for this:<br></div>
<div><br></div>
<div>    function passless {<br></div>
<div>      pass show "$@" | timeout --foreground 30s less<br></div>
<div>    }<br></div>
<div><br></div>
</div>
<div>It doesn't leave traces of secret in terminal scrollback and exits automatically in 30 sec.<br></div>
<div><br></div>
</div>
<div>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.<br></div>
</div>
<div>Or maybe there are better ways to store-and-fetch credit card info in password-store?<br></div>
</div>
</div></div><span class=""><div><u>______________________________<wbr>_________________</u><br></div>
<div>Password-Store mailing list<br></div>
<div><a href="mailto:Password-Store@lists.zx2c4.com" target="_blank">Password-Store@lists.zx2c4.com</a><br></div>
<div><a href="https://lists.zx2c4.com/mailman/listinfo/password-store" target="_blank">https://lists.zx2c4.com/<wbr>mailman/listinfo/password-<wbr>store</a><br></div>
</span></blockquote><div><br></div>
</div>

<br>______________________________<wbr>_________________<br>
Password-Store mailing list<br>
<a href="mailto:Password-Store@lists.zx2c4.com">Password-Store@lists.zx2c4.com</a><br>
<a href="https://lists.zx2c4.com/mailman/listinfo/password-store" rel="noreferrer" target="_blank">https://lists.zx2c4.com/<wbr>mailman/listinfo/password-<wbr>store</a><br>
<br></blockquote></div><br></div>