diff options
Diffstat (limited to 'zshfunc/ssha')
-rw-r--r-- | zshfunc/ssha | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/zshfunc/ssha b/zshfunc/ssha new file mode 100644 index 0000000..57f3e87 --- /dev/null +++ b/zshfunc/ssha @@ -0,0 +1,8 @@ +## 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 |