Giter Site home page Giter Site logo

dotfiles2's Introduction

Dotfiles

I hope you know what these are. This is dotfiles2 because my other dot files repository fell into disuse when I tried to replace it with a Puppet system. I've stopped using both, so this is the second dotfiles repo.

Files

Dot files go in the configs/ directory. The script utils/install.py puts the files in their place, and the file map dictates where that is.

Map

The map file informs install.py where to hardlink files to. Each line has a left and a right side. The left side is a regex that is run against files in the configs/ dir, and the right side indicates where on the system the matched files should be place. The left and right side are separated by the string ' -- '.

The match regex is only run against files, not directories. If the match regex contains a /, it will be matches against the full path of the file, and if not it will only be matched against the filename. Additionally, if the regex does not contain a /, the path that the file was found in in the configs directory will be prepended to the destination.

There is a special value for the right side, !ignore, which causes the file to remain unlinked. This is useful for things like vim .swp files.

dotfiles2's People

Contributors

mythmon avatar

Watchers

Marshal Horn 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.