Coder Social home page Coder Social logo

chef-stowdotfiles's Introduction

stowdotfiles Cookbook

This cookbook allows to manage a git-backed dotfiles directory that uses stow to populate the actual home directory. An example of such a repo can be found here (yes, that's my own one, and yes, that's why this cookbook exists :).

Usage

This cookbook is mainly meant to be used in conjunction with Kitchenplan. In this case, all you need to do is to include the cookbook in your Cheffile:

cookbook "stowdotfiles"

Then you can include the default recipe in the user's yml config:

recipes:
  - stowdotfiles::default

You can then configure the URL of the base repository to be checked out and the path of the target directory where the repo will be cloned:

attributes:
  stowdotfiles:
    repo_url: [email protected]/stefanozanella/dotfiles.git
    target_dir: /Users/stefano/dotfiles

The recipe will then checkout the repo at the specified target directory, and run the install script contained inside it, effectively putting your dotfiles in place.

If no attribute is specified, the recipe will try to clone from [email protected]/<current user>/dotfiles into ~/dotfiles.

Note about syncing

By default, this cookbook does not attempt neither to sync the repo, nor to install an (possibly) updated version of the dotfiles. This is by design, since usually, when you have your dotfiles in place, the workflow turns out to be more manual (while you might still want to update other stuff with Kitchenplan). This might change (read: be more flexible) in the future.

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.