My dotfiles for macOS and linux, managed with chezmoi
.
Below are three options to install chezmoi and the dotfiles.
More options to install chezmoi can be found on the official website.
Both chezmoi and the dotfiles can be installed with a single command using curl or wget:
GITHUB_USERNAME="peter-job"
# curl install
sh -c "$(curl -fsLS https://get.chezmoi.io)" -- init --apply $GITHUB_USERNAME
# wget install
sh -c "$(wget -qO- https://get.chezmoi.io)" -- init --apply $GITHUB_USERNAME
Note
A minimal container image (e.g. ubuntu
base image in docker hub) might not have either.
To install curl
on a Debian-based system, run as root or with sudo:
apt update -y
apt install curl -y
chezmoi can be installed using various package managers.
Popular package managers include:
Homebrew (macOS)
brew install chezmoi
APK (Alpine)
apk add chezmoi
APT (Debian-based systems)
Warning
Official repositories for Debian-based systems don't include the chezmoi
package, meaning that it can't be installed via apt
with default repositories.
Use one of the other options listed here to install chezmoi.
With a working chezmoi installation, the dotfiles can be installed with:
GITHUB_USERNAME="peter-job"
chezmoi init $GITHUB_USERNAME
The dotfiles can be installed directly from the repo via GitHub:
GITHUB_USERNAME="peter-job"
git clone "https://github.com/$GITHUB_USERNAME/dotfiles.git"
cd dotfiles
./install.sh
TODO: Write something about the brew bundle --global + symlink I created here.
I keep track of some thoughts and considerations to help me think through the decisions made in these dotfiles.
I learned and borrowed a lot from Felipe Santos' dotfiles and Tom Payne's dotfiles (the creator of chezmoi).