Switchable SSH Profiles for Github
alias gitp=" git config --global core.sshCommand \" ssh -F ~/.ssh/config-personal\" && \
git config --global user.email personal_email@example.com && \
git config --global user.name \" My Name\" && \
git config --global commit.gpgsign true && \
git config --global user.signingkey XXXXXXXXXXXXXXXX && \
echo \" Switched git to personal profile\" "
alias gitw=" git config --global core.sshCommand \" ssh -F ~/.ssh/config-work\" && \
git config --global user.email work_email@example.com && \
git config --global user.name \" My Name\" && \
git config --global commit.gpgsign true && \
git config --global user.signingkey XXXXXXXXXXXXXXXX && \
echo \" Switched git to work profile\" "
Host *
IgnoreUnknown UseKeychain
UseKeychain yes
AddKeysToAgent yes
IdentityFile ~/.ssh/id_ed25519-personal
IdentitiesOnly yes
Host *
IgnoreUnknown UseKeychain
UseKeychain yes
AddKeysToAgent yes
IdentityFile ~/.ssh/id_ed25519-penji
IdentitiesOnly yes