aboutsummaryrefslogtreecommitdiff
path: root/files/.zsh/zprofile
diff options
context:
space:
mode:
authorAnton Bobov <abobov@gmail.com>2011-11-17 16:57:35 +0500
committerAnton Bobov <abobov@gmail.com>2011-11-17 16:57:35 +0500
commita8625a6368a542d020221f201dc63eb8284e5594 (patch)
treeb06feaf14b6ca6ed7581f270e7ba16b0102fc540 /files/.zsh/zprofile
parentc3339413792acb963c93a1e85124366d078abe66 (diff)
f
Diffstat (limited to 'files/.zsh/zprofile')
-rw-r--r--files/.zsh/zprofile6
1 files changed, 6 insertions, 0 deletions
diff --git a/files/.zsh/zprofile b/files/.zsh/zprofile
new file mode 100644
index 0000000..b9df8e5
--- /dev/null
+++ b/files/.zsh/zprofile
@@ -0,0 +1,6 @@
+SSHAGENT=/usr/bin/ssh-agent
+SSHAGENTARGS="-s"
+if [ -z "$SSH_AUTH_SOCK" -a -x "$SSHAGENT" ]; then
+ eval `$SSHAGENT $SSHAGENTARGS`
+ trap "kill $SSH_AGENT_PID" 0
+fi