Manage dotfiles for macOS
brew tap magcho/magcho
brew install dotz
Download dotz binary from Github relase,and move directory into $PATH.
Cloning this repository. Exec go build main.go -o dotz
and move directory into $PATH.
Before setting $DOTZ_ROOT or command parameter.
export DOTZ_ROOT=~/.dotz
dotz init
- Create dotz project folder into DOTZ_ROOT (default
~/.dotz
) - Initialize git
dotz track xx // Tracking file
dotz track -f xx // Tracking folder
- Move xx to dotz project folder.
- Create xx file or folder symbolic link.
Before setting dotz root git, dotz do backup.
dotz backup [-p]
- Commit of dotzproject of git, optionally push.
Before cloning dotz project into $DOTZ_ROOT path and set env $DOTZ_ROOT.
dotz restore
- Create symbolic links.
Apache License 2.0