diff options
author | Peter Palfrader <peter@palfrader.org> | 2009-05-09 08:56:45 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2009-05-09 08:56:45 +0000 |
commit | c45263f911ca95c84af86643acb99b870e9f475b (patch) | |
tree | d6c7503809cf6aaf9dc804241fc75963e8cd0883 /zshfunc | |
parent | 7e8f3c51d4078c926ad9ae7724cb617e42fde2a1 (diff) |
Add ssha
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@396 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'zshfunc')
-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 |