dotfiles/zsh/ssh.zsh

6 lines
187 B
Bash
Raw Normal View History

2023-07-14 22:39:37 +02:00
if [ -z ${TMUX} ]; then
# Add SSH keys to keychain
find ~/.ssh -type f -regextype egrep -regex '.*/id_[^.]+$' | xargs /usr/bin/keychain --nogui
source ~/.keychain/$(hostname)-sh
fi