Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow adding and printing keys at the same time #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

allow adding and printing keys at the same time #68

wants to merge 1 commit into from

Conversation

eklitzke
Copy link
Contributor

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:

  • it will effectively run envoy -a to add all keys
  • the -q option will ensure that the stdout/stderr from the underlying ssh-add command is suppressed
  • the -p flag will act as usual

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant