allow adding and printing keys at the same time #68
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
This allows me to add something like this to my
~/.bash_profile
: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:In this mode, if you invoke with
envoy -qap
it will do the following:envoy -a
to add all keys-q
option will ensure that the stdout/stderr from the underlyingssh-add
command is suppressed-p
flag will act as usualThe 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