💥 auto-add github key to ssh-agent
This commit is contained in:
parent
3b318edfed
commit
10e25ac9c7
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue