Skip to content

dotfiles

This is my customized version of getantidote/zdotdir, extended to manage other personal dotfiles in addition to Zsh configuration.

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.

  1. Install these by following the links:

    • Homebrew
    • Visual Studio Code
    • nvm
  2. Install these with Homebrew.

    Terminal window
    brew install nvm atuin direnv eza pyenv
    brew install --cask iterm2
  3. Install Node.js with nvm.

    Terminal window
    nvm install --lts
    nvm use --lts
  4. Install Yarn v4 (Berry) globally.

    Terminal window
    corepack enable
    npm install -g yarn

Run these commands in your terminal:

  1. Make a backup directory:

    Terminal window
    mkdir -p ~/dotfiles_backup
  2. 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/ \;
  3. Clone this project into ~/.config/dotfiles:

    Terminal window
    git clone https://github.com/dfinster/dotfiles ~/.config/dotfiles
  4. Bootstrap the dotfiles from your ~/.zshenv.

    Terminal window
    echo ". ~/.config/dotfiles/zsh/.zshenv" > ~/.zshenv

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.

  1. Create ~/.gitconfig.local with a user section containing your name, email, and signingkey.

    Terminal window
    [user]
    name = Your Name
    signingkey = ssh-ed25519 AAAAC3 ...

    All other git options are found in $ZDOTDIR/.gitconfig.

  2. Create ~/.ssh/allowed_signers with your SSH public key to sign commits.

    Terminal window
    [email protected] ssh-ed25519 AAAAC3 ...
  • 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.