This are configuration I use across different machines.
- Setup
chezmoi init [email protected]:hossainemruz/dotfiles.git- Add a file/directory to track:
chezmoi add $FILE- Check diff between source state and machine state:
chezmoi diff- Apply source state into machine:
chezmoi apply- Pull latest change from remote repo and diff with machine state:
chezmoi git pull -- --autostash --rebase && chezmoi diff- Pull latest change from remote and apply them:
chezmoi update- Setup new machine with single command:
export GITHUB_USERNAME=hossainemruz
sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply $GITHUB_USERNAME- Navigate to source directory:
chezmoi cd- Merge machine state with source state:
chezmoi merge