These instructions will enable you to use different SSH keys for different accounts across different Source Code Management (SCM) providers like GitHub, Gitlab, and others, including internal on-prem versions of those providers. You can also use this approach to switch between multiple accounts for a single SCM provider, e.g. a personal Github account and a work Github account.
-
Install
asdf
by following the Getting Started instructions.asdf
is the tool used to manage any number of versions of various programming language runtimes or environments. You can use asdf and the appropriate asdf plugins to replace separate tools likenvm
,pyenv
,rvm
, etc. -
Install the
direnv
plugin forasdf
per these instructions. Direnv is the bit that "automagially"