marcwebbie / passpie

:closed_lock_with_key: Multiplatform command-line password manager
http://passpie.readthedocs.org/
MIT License
921 stars 68 forks source link

Add flag to change copy command #77

Closed zQueal closed 9 years ago

zQueal commented 9 years ago

I'm running from Windows. Obviously I don't have access to xcopy -- however, I do have CLI utilities for copying and pasting from the CLI. They're pclip and gclip. Adding a setting for ~/.passpierc to change the xsel or xcopy commands to something compatible with Windows would be great.

headers:
 - name
 - login
 - password
copy_command: pclip
colors:
 login: green
 name: yellow
 password: cyan 
marcwebbie commented 9 years ago

Hello @zQueal

That'd be hard, this should be going to code the way it is done today. It should go to the: clipboard module

It sounds good but the copy to clipboard command should be intelligent enough to figure out how to handle that.

For now, depending on your version of passpie you could experience the same result with something like:

passpie copy foo@bar --to=stdout | xcopy

Thanks for contributing

zQueal commented 9 years ago

Gotcha, thanks for the attention.