Update .zshrc
This commit is contained in:
parent
f3af7a783e
commit
8add60292e
14
dot_zshrc
14
dot_zshrc
@ -134,6 +134,20 @@ else
|
||||
export EDITOR='vim'
|
||||
fi
|
||||
|
||||
# Set the ssh-agent if it is not already running
|
||||
if ! pgrep -u "$USER" ssh-agent > /dev/null; then
|
||||
# Démarre ssh-agent
|
||||
eval "$(ssh-agent -s)" > /dev/null
|
||||
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
|
||||
ssh-add ~/.ssh/id_ed25519 > /dev/null 2>&1
|
||||
fi
|
||||
if [ -f ~/.ssh/hexasec ]; then
|
||||
ssh-add ~/.ssh/hexasec > /dev/null 2>&1
|
||||
fi
|
||||
|
||||
# Compilation flags
|
||||
# export ARCHFLAGS="-arch x86_64"
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user