These are my personal home-directory dotfiles, managed by chezmoi. This configuration is currently used only on macOS. Much of it would probably apply on Linux also, and some might even be usable on Windows, but this is untested.
-
Open a Terminal window and run the bootstrap script. Follow the prompts to install Homebrew and the basic packages needed to initialize the home-directory with
chezmoi./bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/kpitt/dotfiles/chezmoi/init.sh)" -
If Homebrew was not already installed, run this
evalcommand to ensure that the Homebrew directory is in the PATH. Check the sample command shown at the end of the Homebrew installation, because the actual path to thebrewcommand depends on the CPU type (Intel or Apple Silicon).eval "$(/opt/homebrew/bin/brew shellenv)"
-
Launch "1Password" and sign in, then go to "Preferences -> Developer" and enable the "Use the SSH agent" and "Biometric unlock for 1Password CLI" options.
-
Create a shortcut to the 1Password SSH auth socket (note that this command is all one line).
mkdir -p ~/.1password && ln -s ~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock ~/.1password/agent.sock
-
Set the
SSH_AUTH_SOCKenvironment variable so Git will use the 1Password SSH agent.export SSH_AUTH_SOCK=~/.1password/agent.sock
-
Run the
init_age.shbootstrap script to install the identity file forageencryption./bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/kpitt/dotfiles/chezmoi/init_age.sh)" -
Initialize the
chezmoiconfiguration and download the dotfiles repository.chezmoi init kpitt -S ~/.dotfiles --branch chezmoi --ssh -
Edit the file
~/.config/chezmoi/chezmoi.tomland confirm the settings, or modify them as needed. -
Apply the
chezmoiconfiguration to the home-directory.chezmoi apply
-
After
chezmoi applycompletes successfully, close the terminal window and restart the machine to make sure that any updates to the system settings take effect.