dotfiles/zsh/.config/zsh/ssh.zsh

5 lines
138 B
Bash
Raw Normal View History

2023-03-14 14:57:38 +00:00
if [[ -z $SSH_CONNECTION ]] && [[ $HOSTNAME != "toolbox" ]]; then
2023-03-21 17:50:37 +00:00
eval "$(ssh-agent)" &> /dev/null
ssh-add -q ~/.ssh/id_^*.pub
2023-03-14 14:57:38 +00:00
fi