dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

🛠️ Mike's dotfiles. Managed with https://www.chezmoi.io/

Mike Kasberg's Dotfiles

Managed with chezmoi ❤️

Setup dotfiles on a new machine

  1. (Optional) Install Bitwarden and login if you plan to install secrets.

    Linux

    sudo snap install bw
    bw login
    

    macOS

    curl -o ~/bin/bw 'https://vault.bitwarden.com/download/\?app\=cli\&platform\=macos'
    chmod +x ~/bin/bw
    bw login
    
  2. Install chezmoi to ~/bin and install dotfiles to ~/dotfiles.

    sh -c "$(curl -fsLS git.io/chezmoi)" -- -b "$HOME/bin" init --apply -S ~/dotfiles mkasberg
    

Done! To keep up to date in the future:

chezmoi update

Want to check the diff before applying changes?

chezmoi <update|apply> -nv

Notable Features

Start Your Own Dotfiles

Want to use Chezmoi to manage your own dotfiles? The best way to get started is to follow the Chezmoi Quick Start Guide to start tracking your first dotfile (~/.bashrc, ~/.zshrc, or ~/.gitconfig are great files to start with). Beyond that, I hope you can find some inspiration by looking at my dotfiles and copying things you like!

Testing

Want to test a fresh install on a new machine? A dev container in Docker is great for this because it comes with a non-root user. Use the Docker command below to get into a fresh, disposable testing environment, then run the installation steps from above.

docker run --rm -it --user vscode --workdir /home/vscode mcr.microsoft.com/vscode/devcontainers/base:0-hirsute

Security

Did you find a vulnerability in my dotfiles? An exposed secret? Some other security issue? Please report vulnerabilities via email to [email protected] or [email protected].