<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style>
</head>
<body><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">https://www.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><br></div>
<div><br></div>
<div>On Thu, May 24, 2018, at 14:21, Danylo Hlynskyi wrote:<br></div>
<blockquote type="cite"><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><u>_______________________________________________</u><br></div>
<div>Password-Store mailing list<br></div>
<div><a href="mailto:Password-Store@lists.zx2c4.com">Password-Store@lists.zx2c4.com</a><br></div>
<div><a href="https://lists.zx2c4.com/mailman/listinfo/password-store">https://lists.zx2c4.com/mailman/listinfo/password-store</a><br></div>
</blockquote><div><br></div>
</body>
</html>