aboutsummaryrefslogtreecommitdiff
path: root/files/.zsh/zprofile
diff options
context:
space:
mode:
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