Add proper ssh-agent loading
This commit is contained in:
parent
2bc192643e
commit
6fa7c01922
1 changed files with 7 additions and 1 deletions
|
@ -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)"
|
||||
|
|
Loading…
Reference in a new issue