Skip to content

mvaltas/grind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grind

grind is a tool to help you configure and maintain your machine. I wrote a blog post explaining why I created grind.

How to use it (short)

  1. Download or clone grind.
  2. Check the definitions directory and write your own definition.
  3. run ./grind update

How to use it (long)

Bootstrap

grind provides a bootstrap command for a pre-setup for grind itself:

grind bootstrap

This is a special definition and it should set and install the requirements from grind itself. On macOS it means installing XCode CLI Tools and Homebrew.

Update

grind update is the daily command from grind, it will execute and run all definitions for current machine.

Definitions

All grind does is execute some functions in series defined in the definitions directory. Here's an example of a definition on macOS:

A simple definition

This definition will install git through homebrew if is not already installed.

use "brew"

brew_pkg "git"

Definitions directory organization

First grind will load and execute whatever is in the global directory, these are assumed to be definitions to be applied to any machine.

After that grind will load scripts from the machines directory, where it will try to find a subdirectory with the machine name and from there load the scripts. These definitions are specific for each machine you want to maintain.

Documentation

Click here for more information.