summaryrefslogtreecommitdiffstats
path: root/bashrc
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-10-05 17:11:07 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-10-05 17:11:07 +0200
commitde4015752e013c9c1dd25ff49280126c59201def (patch)
treef6a07916bda65a8755881113b7d7264640a63318 /bashrc
parentb7f92af6fe6233d7aa262b5530b4a56918b15f9e (diff)
downloadbin-de4015752e013c9c1dd25ff49280126c59201def.zip
bin-de4015752e013c9c1dd25ff49280126c59201def.tar.gz
bashrc: buuild list of ssh keys
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bashrc b/bashrc
index 68f7aef..13fad1e 100644
--- a/bashrc
+++ b/bashrc
@@ -144,7 +144,7 @@ function start_agent {
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > ${SSH_ENV}
chmod 600 ${SSH_ENV}
. ${SSH_ENV} > /dev/null
- /usr/bin/ssh-add ~/.ssh/id_dsa ~/.ssh/id_ecdsa ~/.ssh/id_rsa ~/.ssh/gitadm ~/.ssh/asynk_dev
+ /usr/bin/ssh-add $(ls ~/.ssh/*.pub | sed 's/\.pub.*//g' | tr '\n' ' ')
}
#
if [ -e "${SSH_ENV}" ]; then