Remove pyenv setup from zprofile, add check for is_rsa as well as ed25519

This commit is contained in:
Evie Litherland-Smith 2023-02-23 13:49:06 +00:00
parent 7be2032f87
commit cd7898ef94

View file

@ -1,10 +1,9 @@
command -v pyenv > /dev/null && {
export PYENV_ROOT="$HOME/.pyenv"
echo $PATH | grep -i pyenv > /dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
}
if [[ -e $HOME/.ssh/id_ed25519 ]] if [[ -e $HOME/.ssh/id_ed25519 ]]
then then
command -v keychain > /dev/null && eval $(keychain --eval --quiet --noask $HOME/.ssh/id_ed25519) command -v keychain > /dev/null && eval $(keychain --eval --quiet --noask $HOME/.ssh/id_ed25519)
fi fi
if [[ -e $HOME/.ssh/id_rsa ]]
then
command -v keychain > /dev/null && eval $(keychain --eval --quiet --noask $HOME/.ssh/id_rsa)
fi