Code Monkey home page Code Monkey logo

homekeeper's Introduction

Build Status

Homekeeper

This project helps organize and version dotfiles. You can keep your dotfile in a repository somewhere, then symlink them into your HOME directory. This allows you to keep your dotfiles versioned and have them available on any computer you use.

In the event that you use multiple computers and would like dotfiles to be shared, you can specify a 'base' dotfiles directory and have host specific dotfiles override them.

Installation

Install it via pypi:

pip install homekeeper

Examples

My dotfiles repository is located here if you'd like to take a look.

How It Works

Homekeeper will read a $HOME/.homekeeper.json file for configuration, or create one if it doesn't already exist. The default configuration looks like this:

{
    "base_directory": "/home/$USER/dotfiles/base",
    "dotfiles_directory": "/home/$USER/dotfiles/$HOST",
    "excludes": [
        ".git",
        ".gitignore",
    ]
}

Homekeeper will not symlink any file in the excludes array in the configuration.

Homekeeper will symlink files in the base directory first, then override those symlinks with files in your normal dotfiles directory. This can be useful if you have different configurations for different machines.

You may have homekeeper generate this file by running homekeeper init in the directory where you store your dotfiles.

Once homekeeper knows where your dotfiles live, it will remove the dotfile in your home directory, and symlink it from your dotfiles directory. For example, if you have a .bash_profile in ~/dotfiles, then your home directory will contain:

.bash_profile -> /home/$USER/dotfiles/.bash_profile

NOTE: HOMEKEEPER WILL REMOVE THE ORIGINAL FILE ONCE YOU TELL IT TO SYMLINK.

Make sure you back it up or are having homekeeper track the file you want to symlink first.

Excludes

Any paths listed in the excludes directive in homekeeper.json will be ignored by homekeeper when linking.

homekeeper's People

Contributors

retiman avatar sdejean avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.