Install on a new machine
Deploy the dotfiles into your home directory with Git and a POSIX shell, then confirm that they load.
On this page
Deploy the dotfiles into your home directory with one command, then confirm that your shell loads them.
Before you begin
You need:
- Git and a POSIX
sh. - curl, to fetch the one-line installer. Without curl, install with Git only.
- Network access to
github.com.
mise is optional. When curl or wget is available, the installer uses it to fetch mise; the dotfiles work without it.
The installer changes your home directory:
- Moves existing files that conflict with tracked files to
~/.df-bak, created with mode700. A later backup of the same path overwrites the earlier one. - Installs mise to
~/.local/bin/miseif it is missing. To skip it, install without mise. - Installs a pre-commit hook in the bare repository when mise or
prekis available.
To read the installer before it runs, review the installer and pin a commit instead of the next step.
Run the installer
curl -fsSL https://raw.githubusercontent.com/drts01/dotfiles/trunk/.config/dotfiles/bootstrap.sh | sh
Checkpoint: the last line reads Dotfiles bootstrap complete.
- Lines that start with
Warning:report optional components; continue. - A line that starts with
ERROR:stops the install; see Troubleshooting.
Check the install
sh ~/.config/dotfiles/mise-tasks/doctor.sh
Checkpoint: the last line reads All installation checks passed. or Installation checks passed with warnings.
WARNlines for mise,prek, and the pre-commit hook report optional components.- Fix every
FAILline before you continue; Troubleshooting lists each fix.
Load the configuration
Start a new login shell:
exec "$SHELL" -l
Checkpoint: this command prints the alias definition:
alias dotfilesInspect the repository
The dotfiles alias runs Git against the installed repository from any directory under $HOME:
cd ~ && dotfiles status
Checkpoint: Git reports nothing to commit.
If the installer printed Backing up pre-existing dotfiles,
compare your previous files in ~/.df-bak with the tracked versions, and copy back any settings you want to keep.
What you built
- A bare Git repository at
~/.local/share/dotfilesthat tracks files directly in$HOME; see The bare repository. - The
dotfilesalias, Git for that repository. - Shared configuration for POSIX
sh, Bash, and Zsh. - Optional: mise in
~/.local/binand a pre-commit hook.