Skip to content

Instantly share code, notes, and snippets.

@azlan
Created July 11, 2024 03:48
Show Gist options
  • Save azlan/effaf1e5a065aa8a49f95715e86b3058 to your computer and use it in GitHub Desktop.
Save azlan/effaf1e5a065aa8a49f95715e86b3058 to your computer and use it in GitHub Desktop.
ssh agent for fish shell
# ~/.config/fish/config.fish
if test -z (pgrep ssh-agent | string collect)
eval (ssh-agent -c)
set -Ux SSH_AUTH_SOCK $SSH_AUTH_SOCK
set -Ux SSH_AGENT_PID $SSH_AGENT_PID
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment