[pass] Copy username to clipboard

Mathias Renner mail at mathias-renner.de
Wed Dec 30 12:05:50 CET 2015

On Oct 12, 2012, at 12:21 PM, ged at qube.io <http://lists.zx2c4.com/mailman/listinfo/password-store> wrote:

>/A typical workflow for me would be to copy the username to clipboard, />/switch to the application requiring the username and paste, switch back />/to terminal and copy the password to clipboard and then paste into the />/application. /
/Answer on Fri Oct 12 22:58:28 CEST 2012/:

> I use pass file names of the form website.com/username. Tab completion on the website name gets me the username, which I then just type in (after pasting the password). This seems quicker than switching back to the term and adding a username flag.
> Unless you (for some reason) use non-pronounceable usernames, I don't see the need for it to be on the clipboard. 
> Brian

In case someone like me uses a different schema for filenames, which does not include the username in the file name. 
Is "copying username to clipboard" meanwhile possible? It would be also useful for me.

I propose a feature like `pass -c 2`, which copies the second line of the pass-file to clipboard. 
Also, when providing non-numeric values like `pass -c Email`, it copies the value in the line starting with "Email: " to clipboard. 


More information about the Password-Store mailing list