Skip to content

DanielBauman88/dotty

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

Dotty, a dotfile sync tool

Dotty is a little python script for syncing dotfiles stored on your git repo.

Installation:

Add dotty to your dotfiles git repository:

git submodule add https://github.com/vibhavp/dotty

To Update dotty to the latest version:

git submodule update --remote dotty

Configuration

Dotty uses a JSON-formatted config located on the root of your dotfile repository. Currently, dotty can create/check directories, link or copy files/directories, and execute shell commands.

Example

{
    "directories": ["~/emacs.d"],
    
    "link": {
        "source": "dest",
        "zshrc": "~/.zshrc"
        //Directories can be linked too
        "emacs/lisp/": "~/.emacs.d/lisp"
    },

    "copy": {
        //files you want to be copied
        "offlineimaprc": "~/.offlineimaprc"
    },

    "commands": ["emacs -batch -Q -l ~/.emacs.d/firstrun.el"]
}

Usage

usage: dotty.py [-h] [-r] config

positional arguments:
  config         the JSON file you want to use

optional arguments:
  -h, --help     show this help message and exit
  -r, --replace  replace files/folders if they already exist

About

A python script to sync your dotfiles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%