Skip to content

Links dotfiles from a central git-tracked directory. Sort of a git-powered replacement for skel.

License

Notifications You must be signed in to change notification settings

LeftyBC/dotfile-linker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Synopsis

dotfile-linker is a utility to symlink dotfiles stored in a directory into your home directory. This allows for you to commit and sync your dotfiles with a revision control system like git.

Motivation

Colin and Phil work on a lot of servers via the shell, and they enjoy tweaking and improving their dotfiles regularly. Keeping these files in sync with scp everywhere is a lot of work, especially with a few hundred hosts.

If you let git (or the dvcs your of preference) handle your dotfiles' commits and you push them to your central repository, having synced dotfiles is much easier.

Requirements

A basic Python install is all you should really need. Tested mainly with Python 2.7.

Installation

$ git clone [email protected]:LeftyBC/dotfile-linker.git ~/.dotfiles
$ cd ~/.dotfiles
$ mkdir -p contrib/sources
$ touch contrib/sources/_testfile
$ touch contrib/sources/.testfile2
$ python linker.py
* linking file /home/user/dotfile-linker/.dotfiles/_testfile to /home/user/.testfile 
* linking file /home/user/dotfile-linker/.dotfiles/.testfile2 to /home/user/.testfile2

Notes

You should create a subdirectory "contrib/sources". We purposefully omit this directory in the repo to give you the opportunity to use git submodule or a project like Giternal to track them separately from the main linker repo.

If any files already exist in your home directory, they will be backed up before being replaced by symlinks.

License

The MIT License (MIT)

Copyright (c) 2013 Colin Moller

About

Links dotfiles from a central git-tracked directory. Sort of a git-powered replacement for skel.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages