Add proper ssh-agent loading

This commit is contained in:
Alex 2024-02-19 09:26:12 +01:00
parent 2bc192643e
commit 6fa7c01922
Signed by: l-x
GPG key ID: 0B7107C9393169F4

View file

@ -34,10 +34,16 @@ source "$OSH"/oh-my-bash.sh
export LANG=de_DE.UTF-8
eval `ssh-agent`
if [ ! -S ~/.ssh/ssh_auth_sock ]; then
eval `ssh-agent`
ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock
fi
export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock
ssh-add -l > /dev/null || ssh-add
alias c="composer"
alias dc="docker compose"
alias gu="gitup"
[ ! -z "$(which starship)" ] && eval "$(starship init bash)"
[ ! -z "$(which direnv)" ] && eval "$(direnv hook bash)"