Open dhirschfeld opened 2 years ago
$email = "your.email@example.com"
ssh-keygen -t ed25519 -C "${email}"
ssh-add "~/.ssh/id_ed25519"
gh ssh-key add $(Resolve-Path "~/.ssh/id_ed25519.pub").Path
mkdir -p "~/.config/git"
Set-Content -Path "~/.config/git/allowed_signers" -Value "${email} $(cat '~/.ssh/id_ed25519.pub')"
git config --global gpg.format ssh
git config --global user.signingkey "~/.ssh/id_ed25519"
git config --global commit.gpgsign true
git config --global tag.gpgsign true
git config --global gpg.ssh.allowedSignersFile "~/.config/git/allowed_signers"
Configure delta
git config --global core.pager delta
git config --global interactive.diffFilter 'delta --color-only'
git config --global delta.navigate true
git config --global merge.conflictstyle diff3
git config --global diff.colormoved default
git config --global delta.side-by-side true
git config --global delta.line-numbers true
git config --global core.editor "code-insiders --wait"