Skip to content

Instantly share code, notes, and snippets.

@neodevelop
Forked from josh-padnick/fish-agent.sh
Created December 5, 2023 23:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neodevelop/6b386bd595301e0485a48f09042b2764 to your computer and use it in GitHub Desktop.
Save neodevelop/6b386bd595301e0485a48f09042b2764 to your computer and use it in GitHub Desktop.
Run ssh-agent via fish shell
#!/bin/bash
#
# Convert ssh-agent output to fish shell
#
eval "$(ssh-agent)" >/dev/null
echo "set SSH_AUTH_SOCK \"$SSH_AUTH_SOCK\"; export SSH_AUTH_SOCK"
echo "set SSH_AGENT_PID \"$SSH_AGENT_PID\"; export SSH_AGENT_PID"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment