dotfiles
This is my customized version of getantidote/zdotdir
, extended to manage other personal dotfiles in addition to Zsh configuration.
Prerequisites
Section titled “Prerequisites”Install the following tools before proceeding with the setup:
Note: Ignore any post-installation configuration instructions displayed by the tools listed below. Antidote plugins will handle all necessary setup automatically.
-
Install these by following the links:
-
Install these with Homebrew.
Terminal window brew install nvm atuin direnv eza pyenvbrew install --cask iterm2 -
Install Node.js with nvm.
Terminal window nvm install --ltsnvm use --lts -
Install Yarn v4 (Berry) globally.
Terminal window corepack enablenpm install -g yarn
Install dotfiles
Section titled “Install dotfiles”Run these commands in your terminal:
-
Make a backup directory:
Terminal window mkdir -p ~/dotfiles_backup -
Back up existing dotfiles:
Terminal window find ~ -maxdepth 1 '(' \-name ".gitconfig" -o \-name ".zshrc" -o \-name ".zshenv" -o \-name ".zprofile" -o \-name ".zlogin" -o \-name ".zlogout" -o \-name ".zsh_sessions" -o \-name ".zsh_history" -o \-name ".zsh_history.*" -o \-name ".zcompdump*" \')' -exec mv {} ~/zsh_backup/ \; -
Clone this project into
~/.config/dotfiles
:Terminal window git clone https://github.com/dfinster/dotfiles ~/.config/dotfiles -
Bootstrap the dotfiles from your
~/.zshenv
.Terminal window echo ". ~/.config/dotfiles/zsh/.zshenv" > ~/.zshenv
Git Configuration
Section titled “Git Configuration”Git configuration is split between a local file and a global file. The local file is for user and machine specific settings, while the global file contains shared settings.
-
Create
~/.gitconfig.local
with a user section containing yourname
,email
, andsigningkey
.Terminal window [user]name = Your Namesigningkey = ssh-ed25519 AAAAC3 ...All other git options are found in
$ZDOTDIR/.gitconfig
. -
Create
~/.ssh/allowed_signers
with your SSH public key to sign commits.Terminal window
Optional Setup
Section titled “Optional Setup”- Set your preferred iTerm2 theme.
- Install a nerd font, then set it in iTerm2 and VS Code.
- Run
p10k configure
to customize your PowerLevel10k prompt.