This repository contains my personal configuration files, managed with chezmoi.
It allows me to keep my dotfiles version-controlled, portable, and easy to apply across different machines.
- chezmoi installed
- Linux:
sudo apt install chezmoi(Debian/Ubuntu) orsudo pacman -S chezmoi - macOS:
brew install chezmoi - Windows:
scoop install chezmoiorwinget install twpayne.chezmoi
Clone and apply your dotfiles directly from GitHub:
chezmoi init --apply <your-github-username>
chezmoi init --apply ahmed-habbachiExample:
chezmoi init --apply anythingThis will:
- Clone the dotfiles repo from GitHub.
- Apply all managed files to your
$HOMEdirectory.
When you make changes to config files:
chezmoi add ~/.bashrc # Track a new or modified file
chezmoi add ~/.config/nvim/init.vim
chezmoi commit -m "Update bashrc and nvim config"
chezmoi git push # Push changes to GitHubIf youβve updated dotfiles in the repo:
chezmoi updateThis will fetch the latest changes and apply them.
| Command | Description |
|---|---|
chezmoi add <file> |
Start tracking a file |
chezmoi edit <file> |
Edit a tracked file in place |
chezmoi apply |
Apply all changes to your home directory |
chezmoi diff |
Show changes between source and destination |
chezmoi update |
Pull and apply changes from repo |
chezmoi cd |
Open the chezmoi source directory |
chezmoi git <args> |
Run git commands in chezmoi source repo |
ChezMoi can store secrets securely with GPG or age.
Refer to: Encrypting secrets.