funtoo / keychain

keychain ssh-agent front-end
http://www.funtoo.org
GNU General Public License v2.0
750 stars 105 forks source link

is there a way to make keychain output what is the value SSH_AUTH_SOCK should be set to? #76

Open UnixJunkie opened 7 years ago

UnixJunkie commented 7 years ago

If not, then this is a feature request.

danielrobbins commented 7 years ago

This issue has been imported into the Funtoo Linux bug tracker. This helps us to ensure that your bug is prioritized and gets the attention it deserves. You are welcome to create a Funtoo account and participate in the Funtoo Linux workflow or follow-up in the GitHub issue (comments are not currently synchronized.) Follow the action here: https://bugs.funtoo.org/browse/FL-3622

sowbug commented 6 years ago

Is the --eval option what you're looking for? It requires some parsing if you only want the value, but it's intended to be directly evaluated by the current shell, so you can eval it and then ask the shell what $SSH_AUTH_SOCK is.

Note that the --agents gpg option does not behave the same way, unfortunately. I'm about to file a separate issue about this.

UnixJunkie commented 6 years ago

It's so long time ago, I don't remember at all what I was trying to do and why.