Skip to main content

Hassle-free bootstrapping with Homebrew.

Project description

Start with a clean slate

Cider is a simple wrapper for Homebrew and Homebrew Cask that allows you to save your setup across different machines. This lets you to restore a backup without having to deal with the mess that was the state of your previous installation, or painstakingly babysit the process step-by-step.

Simply run the following on a new machine:

git clone [YOUR_REPO] ~/.cider
cider restore

… and you’ll be back up and running, with all of your applications and command line utilities re-installed (and configurations restored).

In addition to Homebrew, Cider also supports managing your user defaults, restoring symlinks, and running scripts to conveniently manage other settings such as your dotfiles.

Installation

pip install cider

Configuration

All configuration files are stored in the ~/.cider directory as JSON. E.g., here’s an example bootstrap file:

{
    "after-scripts": [
        "brew linkapps"
    ],
    "casks": [
        "adobe-creative-cloud",
        "dropbox",
        "firefox",
        "flash",
        "flux",
        "github",
        "google-chrome",
        "google-hangouts",
        "heroku-toolbelt",
        "iterm2",
        "mplayerx",
        "sublime-text",
        "transmission",
    ],
    "formulas": [
        "brew-cask",
        "emacs",
        "fish",
        "git",
        "go",
        "macvim --overwrite-system-vi",
        "python",
        "python3",
        "xctool"
    ],
    "icons": {
        "iTerm": "https://dribbble.com/shots/1702947-iTerm-Replacement-Icon/attachments/271548"
    },
    "symlinks": {
        "bash/.*": "~",
        "bin/*": "~/bin/",
        "git/.*": "~",
        "sh/.*": "~",
        "vim/.*": "~"
    },
    "taps": [
        "caskroom/cask"
    ]
}

User defaults are stored similarly:

{
    "NSGlobalDomain": {
        "ApplePressAndHoldEnabled": false
    },
    "com.apple.dock": {
        "tilesize": 48
    },
    "com.iconfactor.mac.xScope": {
        "generalShowDockIcon": false
    }
}

Caveats

There doesn’t seem to be a way to re-install purchases made from Mac App Store via the command line just yet, so those have to be done by hand.

Note: Cider is a work-in-progress, but it’s fairly well-tested and should be kind to your machine.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cider-1.1.1.tar.gz (16.9 kB view details)

Uploaded Source

File details

Details for the file cider-1.1.1.tar.gz.

File metadata

  • Download URL: cider-1.1.1.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cider-1.1.1.tar.gz
Algorithm Hash digest
SHA256 ea23bc74ce85cef756be04806669fa2515f59b46b3d8f67ebb40d71db23236ce
MD5 470f67d3ca6f536d115151826d9c2305
BLAKE2b-256 2bca6453115c0e790140be149198d9e035f4f30375a5aea8dcc19d335ee70d48

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page