comparison .bashrc @ 900:390dccbc8d83

comment out broken aws credentials magics
author Jeff Hammel <k0scist@gmail.com>
date Tue, 13 Sep 2022 07:39:30 -0700
parents 47d50c70ec04
children 5d9c08d2a090
comparison
equal deleted inserted replaced
899:7ba1f770598c 900:390dccbc8d83
639 ssh-add "${HOME}/.ssh/k0s_rsa" 639 ssh-add "${HOME}/.ssh/k0s_rsa"
640 fi 640 fi
641 fi 641 fi
642 642
643 ### AWS credentials 643 ### AWS credentials
644 if [[ -f "${HOME}/.aws/credentials" ]] 644 # XXX This only works with a credentials file with a single entry
645 then 645 # if [[ -f "${HOME}/.aws/credentials" ]]
646 eval $(awk 'NR != 1 { print "export", toupper($1) "=" $3 }' ~/.aws/credentials) 646 # then
647 fi 647 # eval $(awk 'NR != 1 { print "export", toupper($1) "=" $3 }' ~/.aws/credentials)
648 # fi
648 649
649 if type -P xmodmap >> /dev/null && [[ -e "${HOME}/capslock" ]] 650 if type -P xmodmap >> /dev/null && [[ -e "${HOME}/capslock" ]]
650 then 651 then
651 xmodmap "${HOME}/capslock" 652 xmodmap "${HOME}/capslock"
652 fi 653 fi