Update .config/fish/config.fish
This commit is contained in:
parent
96b5d75d41
commit
c3940fa88b
@ -37,13 +37,18 @@ if not set -q fish_inclusion
|
|||||||
set -eU fish_inclusion
|
set -eU fish_inclusion
|
||||||
end
|
end
|
||||||
|
|
||||||
# Set the ssh keys
|
# Set the ssh agent
|
||||||
if not pgrep ssh-agent > /dev/null
|
if not pgrep ssh-agent > /dev/null
|
||||||
eval (ssh-agent -c | string split ';')
|
eval (ssh-agent -c | string split ';')
|
||||||
end
|
end
|
||||||
set -x SSH_AUTH_SOCK (ssh-agent -s | grep -oP '(?<=SSH_AUTH_SOCK=)[^;]+')
|
set -x SSH_AUTH_SOCK (ssh-agent -s | grep -oP '(?<=SSH_AUTH_SOCK=)[^;]+')
|
||||||
ssh-add ~/.ssh/id_ed25519 &> /dev/null
|
# Set the ssh keys
|
||||||
ssh-add ~/.ssh/hexasec &> /dev/null
|
if [ -f ~/.ssh/id_ed25519 ]; and not ssh-add -l | grep -q id_ed25519
|
||||||
|
ssh-add ~/.ssh/id_ed25519 > /dev/null 2>&1
|
||||||
|
end
|
||||||
|
if [ -f ~/.ssh/hexasec ]; and not ssh-add -l | grep -q hexasec
|
||||||
|
ssh-add ~/.ssh/hexasec > /dev/null 2>&1
|
||||||
|
end
|
||||||
|
|
||||||
# Set personal aliases
|
# Set personal aliases
|
||||||
# For a full list of active aliases, run `alias`.
|
# For a full list of active aliases, run `alias`.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user