diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-04-21 14:42:45 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-04-21 14:42:45 -0300 |
commit | 4d2679e94b5814561c8434fd51371e8e3a8cfc5c (patch) | |
tree | f89be7c9612c9756161208cbf852f83753b25c1a /modules/profile | |
parent | 5de72b31d86632579fd87624b833e2ffe407763f (diff) | |
download | dotfiles-4d2679e94b5814561c8434fd51371e8e3a8cfc5c.tar.gz dotfiles-4d2679e94b5814561c8434fd51371e8e3a8cfc5c.tar.bz2 |
Adding keychain portion into .profile
Diffstat (limited to 'modules/profile')
-rw-r--r-- | modules/profile/profile.dot.link | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/modules/profile/profile.dot.link b/modules/profile/profile.dot.link index 3b71de0..b3179f2 100644 --- a/modules/profile/profile.dot.link +++ b/modules/profile/profile.dot.link @@ -30,10 +30,23 @@ mkdir -p $TMP # Dir colors eval "`dircolors -b ~/.dircolorsrc`" -# SSH Agent -#if [ -e "$HOME/apps/scripts/ssh-agent-eval" ]; then -# $HOME/apps/scripts/ssh-agent-eval -#fi +# SSH and GPG Agents +if [ -e "$HOME/.ssh/id_rsa" ]; then + mkdir -p $HOME/.keychain + /usr/bin/keychain -q $HOME/.ssh/id_rsa + + if [ -e "$HOME/.keychain/$HOSTNAME-sh" ]; then + source $HOME/.keychain/$HOSTNAME-sh + fi + + if [ -e "$HOME/.keychain/$HOSTNAME-sh-gpg" ]; then + source $HOME/.keychain/$HOSTNAME-sh-gpg + fi + + #if [ -e "$HOME/apps/scripts/ssh-agent-eval" ]; then + # $HOME/apps/scripts/ssh-agent-eval + #fi +fi # GPG Agent #if [ -e "$HOME/apps/scripts/gpg-agent-eval" ]; then |