Created
July 11, 2024 03:48
-
-
Save azlan/effaf1e5a065aa8a49f95715e86b3058 to your computer and use it in GitHub Desktop.
ssh agent for fish shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.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