Update .zshrc
This commit is contained in:
parent
c3940fa88b
commit
8314fde550
@ -140,10 +140,10 @@ if ! pgrep -u "$USER" ssh-agent > /dev/null; then
|
||||
fi
|
||||
export SSH_AUTH_SOCK=$(ssh-agent -s | grep -oP '(?<=SSH_AUTH_SOCK=)[^;]+')
|
||||
# Add the keys to the agent
|
||||
if [ -f ~/.ssh/id_ed25519 ]; then
|
||||
if [ -f ~/.ssh/id_ed25519 ]; && ! ssh-add -l | grep -q id_ed25519; then
|
||||
ssh-add ~/.ssh/id_ed25519 > /dev/null 2>&1
|
||||
fi
|
||||
if [ -f ~/.ssh/hexasec ]; then
|
||||
if [ -f ~/.ssh/hexasec ]; && ! ssh-add -l | grep -q hexasec; then
|
||||
ssh-add ~/.ssh/hexasec > /dev/null 2>&1
|
||||
fi
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user