Step 1: Organize your directories by account
Before you configure your shell plugins to use multiple accounts, group the project directories on your computer by the accounts they use. For example, if you have a personal and a work GitHub account, you might organize your personal and work GitHub repository folders like this:Step 2: Configure default credentials for each environment
After you organize your projects under account-level directories, you can set default credentials for your shell plugin to use in each directory and all its subfolders.-
Change directories to one of the account-level folders you created. For example:
-
Sign in to the 1Password account where the credentials you want to use are stored:
-
Choose a plugin to initialize, or run
op plugin initto choose from a list of all available plugins. For example, to initialize the GitHub plugin: - Import or select the appropriate credentials to use with the account.
- Select Use automatically when in this directory or subdirectories as the default credential scope.
- Repeat the process in other account-level folders with their respective credentials.