dotfiles/zsh/ssh.zsh

6 lines
187 B
Bash

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