+
Skip to content

frezbo/dotfiles

Repository files navigation

dotfiles

Use Brewfile, topgrade to keep everything in sync

Setup

Setup Brew on MacOS and run these commands:

brew install chezmoi gpg pinentry-mac openssh
export PATH=$(brew --prefix openssh)/bin:$PATH

Then plug in the YubiKey and run gpg --card-status and retrieve the key via gpg --card-edit followed by fetch.

Then retrieve the resident ssh keys by running

ssh-keygen -K
mv id_ed25519_sk.pub ~/.ssh/git.pub
mv id_ed25519_sk ~/.ssh/git

We can now proceed to setup rest of the dotfiles.

chezmoi init frezbo
chezmoi apply ~/.config/chezmoi
chezmoi apply ~/.config/chezmoi/chezmoi.toml
chezmoi apply ~/.gnupg
chezmoi apply ~/.gnupg/gpg-agent.conf
chezmoi apply

Also run git config remote.origin.pushurl git@github.com:frezbo/dotfiles.git so we use ssh for pushes.

This should setup all the required dot files.

At last run to set generate the ssh config file.

Run assh config build > ~/.ssh/config

Verify GitHub login via ssh -T git@github.com

About

dotfiles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载