These are dotfiles that I use every day. They're managed with yadm.
These commands will:
- Install Homebrew and yadm.
- Install dotfiles to your home directory.
- Run a boostrap script.
For dotfiles, if a file already exists locally and has content that differs from the one in this repository, the local file will be left unmodified, and you’ll have to review and resolve the differences.
This does not apply for the boostrap script. Please read through it to understand what it does.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install yadm
yadm config local.class work ## OR yadm config local.class home
yadm clone [email protected]:zdrazil/my-preferences.git
yadm decrypt
Use instructions from GitHub guide and in Proper use of SSH client in Mac OS X to setup SSH keys or use the quick setup in next section.
ssh-keygen -t ed25519 -C "[email protected]"
eval "$(ssh-agent -s)"
Add this to ~/.ssh/config
:
Host *
UseKeychain yes
AddKeysToAgent yes
IdentityFile ~/.ssh/id_ed25519
pbpaste >> ~/.ssh/config
chmod 600 ~/.ssh/config
ssh-add --apple-use-keychain ~/.ssh/id_ed25519
touch ~/.config/git/config.ssh
pbcopy < ~/.ssh/id_ed25519.pub
To ~/.config/git/config.ssh
, add:
[user]
signingKey = ""
ssh-add ~/.ssh/id_ed25519
xclip -selection clipboard < ~/.ssh/id_ed25519.pub
clip < ~/.ssh/id_ed25519.pub