add new dump command
Dusty Mabe
dusty at dustymabe.com
Sun Feb 5 15:49:50 CET 2017
On 02/05/2017 09:04 AM, HacKan Iván wrote:
> Funny thing is, I said the same the first time someone answered me that (a week ago) :D
>
> I can't find that email, but I wrote one: https://github.com/HacKanCuBa/pass-extension-insertfile
>
> Basically, an extension is a file named command.bash in .extensions directory in the store (~/.password-store) that is sourced by the main script.
>
> Try the following: create example.bash in that dir, set the executable bit (chmod +x ~/.password-store/.extensions/example.bash) and put the following content:
>
> #!/usr/bin/env bash
> echo This is an example pass extension.
>
> Then run `pass example` and voilà ;)
>
> Btw, to enable extensions you must:
>
> export PASSWORD_STORE_ENABLE_EXTENSIONS=true
>
> Or else:
>
> PASSWORD_STORE_ENABLE_EXTENSIONS=true pass example
>
> More info in the man page: man pass.
>
> Hope it helped. Cheers!
>
That is neat! Thanks for the pointers. If my patch doesn't get
accepted I'll explore implementing it as an extension.
Dusty
More information about the Password-Store
mailing list