Skip to content

pnewsam/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles

My dotfiles, managed with dotsync.

Structure

home/           ← mirrors $HOME — this is what gets synced
├── .zshrc
├── .gitignore_global
└── .config/
    └── nvim/
cmd/dotsync/    ← the sync tool

dotsync

Syncs dotfiles from the home/ directory into $HOME.

# Dry run — see what would happen
go run ./cmd/dotsync --dry-run

# Install dotfiles (skips existing files that differ)
go run ./cmd/dotsync

# Overwrite existing files
go run ./cmd/dotsync --force

# Backup existing files before overwriting
go run ./cmd/dotsync --backup

# Verbose output
go run ./cmd/dotsync --verbose

Conflict behavior

Situation Default --force --backup
Target doesn't exist Copy Copy Copy
Target exists, identical Skip Skip Skip
Target exists, differs Skip + warn Overwrite Rename → .bak, then copy

Install as a binary

go install ./cmd/dotsync

Then run dotsync from any directory inside the repo.

Notes to Self

Projects to check out:

About

Global configuration files for sharing and syncing across machines.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors