summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2016-10-26 20:19:43 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2016-10-26 20:25:03 +0200
commitb185ddd8982cf2cfd5df99286b91aaa651e7339e (patch)
treefc4dcabd1f0dcf71e13b7a6b4d0f5755f02b6bab /bashrc
parente0ad7fccaa0feff8e9507a8290259273563c3d37 (diff)
Start ssh-agent if not available
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/bashrc b/bashrc
index e0ea08b..ddbc10c 100644
--- a/bashrc
+++ b/bashrc
@@ -47,7 +47,9 @@ export DEBEMAIL=jranke@uni-bremen.de
export DEBFULLNAME="Johannes Ranke"
# }}}
# ssh-agent {{{
-eval `ssh-agent -s`
+if [ -z "$SSH_AUTH_SOCK" ]; then
+ eval `ssh-agent -s`
+fi
# }}}
# rdkit {{{
# RDKIT (commented out on 2015-10-02 as I am using the Debian package python-rdkit

Contact - Imprint