💥 auto-add github key to ssh-agent

This commit is contained in:
DannyDannyDanny 2023-11-20 11:05:32 +01:00
parent 3b318edfed
commit 10e25ac9c7

View file

@ -2,4 +2,7 @@ if not pgrep --full ssh-agent | string collect > /dev/null
eval (ssh-agent -c) eval (ssh-agent -c)
set -Ux SSH_AGENT_PID $SSH_AGENT_PID set -Ux SSH_AGENT_PID $SSH_AGENT_PID
set -Ux SSH_AUTH_SOCK $SSH_AUTH_SOCK set -Ux SSH_AUTH_SOCK $SSH_AUTH_SOCK
# ssh-add ~/.ssh/id_*_github
end end
set -gx EDITOR nvim