Mercurial > hg > config
comparison .bashrc @ 860:af998083be84
add ssh keys
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sat, 14 Apr 2018 16:01:05 -0700 |
parents | ebfcbbc8a627 |
children | ff31f0975d71 |
comparison
equal
deleted
inserted
replaced
859:b8510769d001 | 860:af998083be84 |
---|---|
625 if [ -e "${LOCAL_BASHRC}" ] | 625 if [ -e "${LOCAL_BASHRC}" ] |
626 then | 626 then |
627 . "${LOCAL_BASHRC}" | 627 . "${LOCAL_BASHRC}" |
628 fi | 628 fi |
629 | 629 |
630 ### add ssh keys | |
631 if which ssh-add | |
632 then | |
633 for key in ${HOME}/.ssh/*.pem; do | |
634 ssh-add "${key}" >> /dev/null | |
635 done | |
636 if [ -e "${HOME}/.ssh/k0s_rsa" ] | |
637 then | |
638 ssh-add "${HOME}/.ssh/k0s_rsa" | |
639 fi | |
640 fi | |
641 | |
642 ### AWS credentials | |
643 if [[ -f "${HOME}/.aws/credentials" ]] | |
644 then | |
645 eval $(awk 'NR != 1 { print "export", toupper($1) "=" $3 }' ~/.aws/credentials) | |
646 fi | |
647 | |
648 | |
630 ### regenerate fluxbox menus here for convenience | 649 ### regenerate fluxbox menus here for convenience |
631 MENU=~/web/site/programs.html | 650 MENU=~/web/site/programs.html |
632 regeneratefluxmenu() { | 651 regeneratefluxmenu() { |
633 if [ -e "${MENU}" ] | 652 if [ -e "${MENU}" ] |
634 then | 653 then |