summaryrefslogtreecommitdiff
path: root/zshfunc/ssha
blob: 5914a792289d4f66d1a63963692fd8e71ed3a22f (plain)
1
2
3
4
5
6
7
8
9
10
## vim:ft=zsh:foldmethod=marker

(
local SSH_AUTH_SOCK
local SSH_AGENT_PID
eval `ssh-agent`
ssh-add -c
ssh -o ControlPath=none -A "$@"
kill $SSH_AGENT_PID
)