vodik / envoy

A ssh/gpg-agent wrapper leveraging cgroups and systemd/socket activation
GNU General Public License v3.0
218 stars 17 forks source link

allow adding and printing keys at the same time #68

Open eklitzke opened 8 years ago

eklitzke commented 8 years ago

Hi,

This allows me to add something like this to my ~/.bash_profile:

source <(envoy -qap)

and have my keys loaded. For reasons that are not entirely clear to me, previously I had to have something like this in my ~/.bash_profile to get the same effect:

envoy
source <(envoy -p)

In this mode, if you invoke with envoy -qap it will do the following:

The way I implemented this, envoy will try to run through as many of the flags as possible on the command line. This isn't strictly correct -- there could be some combinations of flags that don't make sense -- but it's a good start.

Let me know what you think, I'd be happy to change this if you think it needs more work.

Cheers, Evan