aboutsummaryrefslogtreecommitdiff
path: root/bash/10-ssh-agent.profile
diff options
context:
space:
mode:
Diffstat (limited to 'bash/10-ssh-agent.profile')
-rw-r--r--bash/10-ssh-agent.profile9
1 files changed, 9 insertions, 0 deletions
diff --git a/bash/10-ssh-agent.profile b/bash/10-ssh-agent.profile
new file mode 100644
index 0000000..0fc4082
--- /dev/null
+++ b/bash/10-ssh-agent.profile
@@ -0,0 +1,9 @@
+# vi: ft=sh
+
+#SA_SSH_AGENT_STATIC='no'
+#SA_SSH_SOCKET="/var/run/user/$UID/ssh-agent.sock"
+#SA_SSH_PIDFILE="/var/run/user/$UID/ssh-agent.pid"
+
+if [ ! "$SA_SSH_AGENT_STATIC" = "yes" ]; then
+ [ -z $SSH_AUTH_SOCK ] && eval `ssh-agent`
+fi