funtoo / keychain

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

Fish shell problem #72

Closed DonPavlov closed 6 years ago

DonPavlov commented 7 years ago

When i try to use the fish shell, i enter the needed snippet in my fish config, but i get these errors: `Unsupported use of '='. In fish, please use 'set SSH_AUTH_SOCK /tmp/ssh-xnA5AcVFHhKY/agent.1204'.

from sourcing file ~/.config/fish/config.fish called during startup

Unsupported use of '='. In fish, please use 'set SSH_AGENT_PID 1206'.

from sourcing file ~/.config/fish/config.fish called during startup

`

And even if i just use this command, instead of the recommended # keychain alternative ?? if status --is-interactive; keychain ~/.ssh/id_rsa end

i get the problem, that i can't really can't use my ssh keys.

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-3495

ghost commented 6 years ago

I tested keychain with fish shell and in my opinion, this is a problem for the fish shell developers and not an issue with keychain. Not sure why 'sourcing' was ever recommended as it obviously fails since fish shell is not POSIX compliant. Perhaps in the past it worked but no longer does. Also, just executing keychain in the start up config in a fish shell also fails even if /bin/sh is pointing to a valid POSIX compatible shell