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
eval
command 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 thebrew
command 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_SOCK
environment variable so Git will use the 1Password SSH agent.export SSH_AUTH_SOCK=~/.1password/agent.sock
-
Run the
init_age.sh
bootstrap script to install the identity file forage
encryption./bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/kpitt/dotfiles/chezmoi/init_age.sh)"
-
Initialize the
chezmoi
configuration and download the dotfiles repository.chezmoi init kpitt -S ~/.dotfiles --branch chezmoi --ssh
-
Edit the file
~/.config/chezmoi/chezmoi.toml
and confirm the settings, or modify them as needed. -
Apply the
chezmoi
configuration to the home-directory.chezmoi apply
-
After
chezmoi apply
completes successfully, close the terminal window and restart the machine to make sure that any updates to the system settings take effect.