-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add multiple ssh key config for github
- Loading branch information
Showing
4 changed files
with
60 additions
and
16 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
dot_config/private_1Password/private_ssh/private_agent.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# This is the 1Password SSH agent config file, which allows you to customize the | ||
# behavior of the SSH agent running on this machine. | ||
# | ||
# You can use it to: | ||
# * Enable keys from other vaults than the Private vault | ||
# * Control the order in which keys are offered to SSH servers | ||
# | ||
# EXAMPLE | ||
# | ||
# By default, all keys in your Private vault(s) are enabled: | ||
# | ||
# [[ssh-keys]] | ||
# vault = "Private" | ||
# | ||
# You can enable more keys by adding more `[[ssh-keys]]` entries. | ||
# For example, to first enable item "My SSH Key" from "My Custom Vault": | ||
# | ||
# [[ssh-keys]] | ||
# item = "My SSH Key" | ||
# vault = "My Custom Vault" | ||
# | ||
# [[ssh-keys]] | ||
# vault = "Private" | ||
# | ||
# You can test the result by running: | ||
# | ||
# SSH_AUTH_SOCK=~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock ssh-add -l | ||
# | ||
# More examples can be found here: | ||
# https://developer.1password.com/docs/ssh/agent/config | ||
|
||
[[ssh-keys]] | ||
vault = "Personal" | ||
|
||
[[ssh-keys]] | ||
vault = "Work" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
# vim:ft=gitconfig ts=2 sw=2 | ||
|
||
[user] | ||
email = [email protected] | ||
name = xvzc | ||
signingkey = "~/.ssh/xvzc.pub" | ||
email = [email protected] | ||
name = xvzc | ||
signingkey = "~/.ssh/xvzc.pub" | ||
|
||
[includeIf "gitdir:~/work/"] | ||
path = ~/.gitconfig | ||
[includeIf "gitdir:~/_work/"] | ||
path = ~/_work/.gitconfig | ||
|
||
[init] | ||
defaultBranch = main | ||
defaultBranch = main | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters