SyShock / dotfm

Dotfiles Manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DotFM

Dotfiles Manager

A script to manage your unix dotfiles.

  • links all the files and folders given in config.json
  • keeps the old files
  • logs the changes made
  • integration testing with docker

Motivation

Wanted to make own script for managing dotfiles

Parameters

optional arguments:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  read from FILE
  -o OPTION, --option OPTION
                        set OPTION without propting for one
  -p PRESET, --preset PRESET
                        specify preset

The format for dotfiles.json is the following:

{
    "dependencies": {
        "example": "github.com/example.git"
    },
    "links": {
        "<Destination>": "<Source>"
    }
}

You use different presets you have to create a new file, it needs to have the same name as the dotfiles folder!

Just remember to specify this preset on execution

Testing

# from project root
bash ./test/test.sh

About

Dotfiles Manager


Languages

Language:Python 94.9%Language:Dockerfile 3.6%Language:Shell 1.5%