pass password thru a filter on way to clipboard?

Tobias Girstmair junkgir-passwd at yahoo.de
Fri Nov 24 13:08:15 CET 2017


Patching pass to accept a line number with show isn't much work. I've included

a patch (as attachment, because I don't trust my webmail to not mangle it),
which adds -nN and --line=N (with N being the line number) to only show a
specific line. (Maybe this could be merged? It would be useful in a lot of
cases)

Till Schäfer <till2.schaefer at tu-dortmund.de> schrieb am 11:49 Freitag, 24.November 2017:



Hi, 
you can  also just use the show command and pipe it through the standard tool chain of your shell. If you are using X, you can then pipe it to the X clipboard via xclip. 

pass show XYZ | head -n 1 | tr -d '\n' | sed 's/ //g' |  xclip -selection clipboard

A little bit formatting noise, but it works. It would be nice to directly specify the line, which should be shown by pass show. 

Regards, 
Till

Am Donnerstag, 23. November 2017, 23:42:26 CET schrieb Greg Minshall:
> hi.  pass make me very happy -- thanks very much!
> 
> my basic, silly, use case, is credit card numbers.  i like to store them
> with spaces separating groups of 4 digits ("1234 5678 9012 3456"), but
> web sites typically want them space-free.  so, in *this* case, i'd like
> to pass them through "sed 's/ //g'" on the way to the clipboard.
> 
> in general, it might be nice to allow some arbitrary filter to be
> inserted, maybe where "pass" is set in cmd_show?  (where it would apply
> with or without -c.)  (though some more specific thing, like an option
> to exclude spaces, would likely be more secure, so...)
> 
> i don't think that can be done as an add-on (without duplicating all of
> cmd_show, i'd guess).
> 
> cheers, and again thanks, Greg Minshall
> _______________________________________________
> Password-Store mailing list
> Password-Store at lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/password-store
> 
-- 
Dipl.-Inf. Till Schäfer
TU Dortmund University
Chair 11 - Algorithm Engineering
Otto-Hahn-Str. 14 / Room 237
44227 Dortmund, Germany

e-mail: till.schaefer at cs.tu-dortmund.de
phone: +49(231)755-7706
fax: +49(231)755-7740
web: http://ls11-www.cs.uni-dortmund.de/staff/schaefer
pgp: https://keyserver2.pgp.com/vkd/SubmitSearch.event?&&SearchCriteria=0xD84DED79

_______________________________________________
Password-Store mailing list
Password-Store at lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/password-store
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lineno.patch
Type: text/x-patch
Size: 771 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20171124/536245e7/attachment.bin>


More information about the Password-Store mailing list