Skip to content

magcho/dotz

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
ci
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Manage dotfiles for macOS

build for mac

install

Useing homebrew

brew tap magcho/magcho
brew install dotz

Manually

Download dotz binary from Github relase,and move directory into $PATH.

Self build

Cloning this repository. Exec go build main.go -o dotz and move directory into $PATH.

Usage

Init

Before setting $DOTZ_ROOT or command parameter.

export DOTZ_ROOT=~/.dotz
dotz init
  1. Create dotz project folder into DOTZ_ROOT (default ~/.dotz)
  2. Initialize git

Track

dotz track xx    // Tracking file
dotz track -f xx // Tracking folder
  1. Move xx to dotz project folder.
  2. Create xx file or folder symbolic link.

Backup

Before setting dotz root git, dotz do backup.

dotz backup [-p]
  1. Commit of dotzproject of git, optionally push.

Restore

Before cloning dotz project into $DOTZ_ROOT path and set env $DOTZ_ROOT.

dotz restore
  1. Create symbolic links.

Lisense

Apache License 2.0