aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--profile.dot.link28
1 files changed, 16 insertions, 12 deletions
diff --git a/profile.dot.link b/profile.dot.link
index 57afb93..1c3c734 100644
--- a/profile.dot.link
+++ b/profile.dot.link
@@ -137,26 +137,30 @@ mkdir -p $TMP
eval "`dircolors -b ~/.dircolorsrc`"
# SSH and GPG Agents
-if [ -e "$HOME/.ssh/id_rsa" ]; then
+if [ -x '/usr/bin/keychain' ]; then
+ mkdir -p $HOME/.keychain
- if [ -x '/usr/bin/keychain' ]; then
- mkdir -p $HOME/.keychain
+ if [ -e "$HOME/.ssh/id_rsa" ]; then
/usr/bin/keychain -q $HOME/.ssh/id_rsa
+ fi
- if [ -e "$HOME/.keychain/$HOSTNAME-sh" ]; then
- . $HOME/.keychain/$HOSTNAME-sh
- fi
+ if [ -e "$HOME/.ssh/id_ed25519" ]; then
+ /usr/bin/keychain -q $HOME/.ssh/id_ed25519
+ fi
- if [ -e "$HOME/.keychain/$HOSTNAME-sh-gpg" ]; then
- . $HOME/.keychain/$HOSTNAME-sh-gpg
- fi
+ if [ -e "$HOME/.keychain/$HOSTNAME-sh" ]; then
+ . $HOME/.keychain/$HOSTNAME-sh
fi
- #if [ -e "$HOME/apps/scripts/ssh-agent-eval" ]; then
- # $HOME/apps/scripts/ssh-agent-eval
- #fi
+ if [ -e "$HOME/.keychain/$HOSTNAME-sh-gpg" ]; then
+ . $HOME/.keychain/$HOSTNAME-sh-gpg
+ fi
fi
+#if [ -e "$HOME/apps/scripts/ssh-agent-eval" ]; then
+# $HOME/apps/scripts/ssh-agent-eval
+#fi
+
# GPG Agent
#if [ -e "$HOME/apps/scripts/gpg-agent-eval" ]; then
# $HOME/apps/scripts/gpg-agent-eval