blob: b5453211bdc773bb6596c44f8fe31fefa9a5b4ef (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
[ -f "$HOME/.bashrc" ] && source "$HOME/.bashrc"
echo "Welcome to $( hostname )"
spawn_ssh_agent() {
[ -n "${SSH_AGENT_PID:+x}" ] && return 0
eval "$( ssh-agent -s )" > /dev/null \
&& trap "$( printf 'kill %q' "$SSH_AGENT_PID" )" 0 \
&& ssh-add &> /dev/null
}
[ "$( uname -o )" == 'Cygwin' ] && spawn_ssh_agent
|