Git Product home page Git Product logo

mr-template's Introduction

A template for myrepos and vcsh.

For a detailed explanation see: Conquer your dotfiles with VCSH and MR.

Structure of the repository

  • master branch for README and stuff that won't end up in your $HOME.
  • mr branch for the configuration of myrepos.
  • all other branches for your applications and their dotfiles.

Structure of the mr branch

.
├── .config
│   └── mr
│       ├── available.d
│       │   └── mr.vcsh
│       └── config.d
│           └── mr.vcsh -> ../available.d/mr.vcsh
└── .mrconfig

The contents of this branch can be summarized as follows:

  • .mrconfig: the entrypoint configuration file for mr,
  • .config/mr/available.d/: repository definitions for your applications,
  • .config/mr/config.d/: repository definitions active in the current system. Contains symlinks to available.d/.

How to add a new application

  1. Fork this repo
  2. Add a repository definition to ./config/mr/available.d/ in the mr branch.
  3. Symlink it to config.d if you want it to be activated by default.
  4. Create a new branch with git checkout -b your_app init.
  5. Add your dotfiles
  6. Push

How to use on a new system

Clone the mr branch with vcsh:

$ vcsh clone -b mr https://example.com/your-fork mr

Enable/disable the repository definitions that you want on the system:

$ cd .config/mr
$ ln -s ../available.d/i3.vcsh config.d/

Checkout everything with mr:

$ mr checkout

mr-template's People

Contributors

tyrion avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

bketelsen

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.