[pass] [PATCH] Allow custom subcommands
Lucas Hoffmann
l-m-h at web.de
Mon Oct 17 23:37:43 CEST 2016
> > Quoting Thorsten Wißmann (2016-09-30 11:33:33)
> > > Other command line utilities like git or hledger[2] provide those
> > > custom subcommands, and I'd love to see it in pass as well. I've
> > > implemented that in the attached git formatted patch, but did not know
> > > whether/where/how to add an description for that in the man page.
I came up with another little hack that people can use if they want to
have custom subcommands for pass and don't like wrappers. You can write
a script as a custom subcommand for git and use it via `pass git ...`!
E.g.
$ printf '#!%s\necho bar' "$SHELL" > ~/bin/git-foo
$ chmod +x ~/bin/git-foo
$ pass git foo
You can use $GIT_WORK_TREE in the script. Just posting this in case
somebody is interested in the idea.
Lucas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: signature
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20161017/7224e83c/attachment.asc>
More information about the Password-Store
mailing list