bottlerocketlabs / dotfiles

Download your remote dotfiles repo and setup your home directory
MIT License
0 stars 0 forks source link
dotfiles git

dotfiles

A tool to manage dotfiles with zero dependencies

Uses https://github.com/go-git/go-git instead of git

usage

# download a release onto your path

# output help
$ dotfiles --help

# clone repo https://github.com/bottlerocketlabs/.dotfiles.git to $HOME/.dotfiles
# if repository contains an executable script `/install`, run that
# if repository contains `/dotfiles.yaml` process and execute that config (see below)
$ dotfiles bottlerocketlabs
# same for https://github.com/bottlerocketlabs/my-dot-files.git to $HOME/.dotfiles
$ dotfiles bottlerocketlabs/my-dot-files
# same for explicit repo url to $HOME/.dotfiles
$ dotfiles https://gitlab.com/bottlerocketlabs/somerepo.git

# if $HOME/.dotfiles directory already exists and all files are unmodified, pull latest version, clean up if possible and rerun install process
$ dotfiles

config

Handles differences in OS darwin/linux