Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: df6673b4d8
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (20 sloc) 0.434 kb
# ssh agent
function init-agent () {
if ssh-add -l >/dev/null 2>&1; then
return 0
else
test -e ~/.agent.env && . ~/.agent.env > /dev/null
if ssh-add -l >/dev/null 2>&1; then
return 0
else
ssh-agent > ~/.agent.env 2>/dev/null
. ~/.agent.env >/dev/null 2>&1
ssh-add $HOME/.ssh/*_rsa >/dev/null 2>&1
return 0
fi
fi
}
init-agent
function sshreen () {
ssh -t "$@" screen -DR
}
Jump to Line
Something went wrong with that request. Please try again.