# $OpenBSD: dot.profile,v 1.7 2020/01/24 02:09:51 okan Exp $ # # sh/ksh initialization # if we have private ssh key(s), start ssh-agent and add the key(s) id1=$HOME/$USER/.ssh/identity id2=$HOME/$USER/.ssh/id_dsa id3=$HOME/$USER/.ssh/id_rsa id4=$HOME/$USER/.ssh/id_ecdsa id5=$HOME/$USER/.ssh/id_ed25519 if [ -z "$SSH_AGENT_PID" ]; then if [ -x /usr/bin/ssh-agent ] && [ -f $id1 -o -f $id2 -o -f $id3 -o -f $id4 -o -f $id5 ]; then eval `ssh-agent -s` ssh-add < /dev/null fi fi PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games export ENV=~/.kshrc export PATH HOME TERM SSH_AGENT_PID