Giter Site home page Giter Site logo

dotmatrix's Introduction

DOTMATRIX

Dotmatrix is a collection of dotfiles used at Hashrocket to customize various development tools. This project is the culmination of many years worth of tinkering with our favorite tools to get them to behave just right. We think using Dotmatrix makes working with these tools more pleasant and hope you will too!

What are dotfiles?

Dotfiles are really just plain text files that start with a '.' and they are used to set preferences for things like Git and Vim. To see your current dotfiles, open a terminal and in your home folder run this:

$ ls -a

Most users will see a long list of files that you might not have know were even there! Since they start with a '.' the OS ignores them (usually) - those are your current dotfiles, Dotmatrix hopes to replace/augment whatever configuration you already have.

Install

Start by cloning down the repo:

$ git clone https://github.com/hashrocket/dotmatrix.git

Then run this script:

$ bin/install

This script symlinks all dotfiles into your home directory.

Hashrocket Workstation

Dotmatrix comes with gitconfig for our Hashrocket Workstations that can be installed like so:

$ bin/install --workstation

Safe by Default

When you install Dotmatrix like this, only files that do not already exist in your $HOME directory will be linked. If you have your own .bashrc file, for example, Dotmatrix won't mess with it.

What we'd recommend, however, is moving that file to ~/.bashrc.local, and Dotmatrix will source it for you.

Partial Installation

Sometimes it's useful to only install part of Dotmatrix. For partial installation, you can create a FILES file in the root of Dotmatrix that contains a newline-delimited list of dotfiles to symlink and keep up to date with Dotmatrix.

When FILES exists in the Dotmatrix source directory, running bin/install will only symlink the dotfiles listed within FILES.

If, for example, you only want the tmux configuration and sharedrc files, and want to ignore all of the rest of Dotmatrix's dotfiles:

$ cd path/to/dotmatrix
$ cat FILES
.tmux.conf
.sharedrc
$ bin/install # Only installs .tmux.conf and .sharedrc

Vim bundles

For Vim users, there's another command you might want to run, after you've run bin/install:

$ hr vimbundle

This will install the set of Vim bundles we use.

After you've done ./bin/install, you'll have a .vimbundle file and this is a manifest of sorts that the vimbundles.sh script will use to install various vim plugins. If you have other plugins that you like that aren't on this list, you can put them in a ~/.vimbundle.local and that will be installed secondarily.

The ~/.vimbundle.local file should include one plugin per line, each having the following format:

github-user/repo-name

You need not include a trailing .git.

hr

hr is a command with lots of useful scripts as subcommands, based loosely on Basecamp's sub.

When you run bin/install, hr is installed automatically. If you don't want it, simply comment out the line from ~/.zshrc.local or ~/.bashrc.local that initializes it.

To use, just run hr. Each subcommand is self-documenting.

hr plugins

If you have have commands you'd like to add to hr, add them within a "plugin". Plugins are really just folders within hr's "plugins" folder.

The anatomy of a plugin follows:

<root>/
  libexec/
    hr-my-awesome-command
    hr-my-other-command

With the above plugin, hr my-awesome-command would run the script located at hr-my-awesome-command.

Plugins are designed to be git repos. For example, if there were another hr plugin you wanted to add, you could add it like this:

$ hr plugins add my_plugin git://github.com/path/to/git/repo.git

For more information, run hr help plugins

Actively Maintained

At Hashrocket we use Dotmatrix on all of our development machines, then for many of us we get so familiar with the setup that we use it on our personal machines too. That means there's a lot of picky nerds using Dotmatrix every day to make their tools easy and fun to use.

Update

Keeping your Dotmatrix up-to-date is easy. Just visit the Dotmatrix directory and run bin/upgrade. This will fetch the latest changes from GitHub and symlink any new files.

About

Hashrocket logo

Dotmatrix is supported by the team at Hashrocket, a multidisciplinary design and development consultancy. If you'd like to work with us or join our team, don't hesitate to get in touch.

dotmatrix's People

Contributors

jgdavey avatar tpope avatar mrmemes-eth avatar jonallured avatar hashrocketeer avatar therubymug avatar jwworth avatar leshill avatar chriserin avatar rondale-sc avatar davelyon avatar rwz avatar veezus avatar vnegrisolo avatar adamlowe avatar paulelliott avatar mattpolito avatar biscuitvile avatar vjustov avatar rbxbx avatar nusco avatar atdt avatar mwoods79 avatar mattyoho avatar outoftime avatar kalmanh avatar plicjo avatar jsncmgs1 avatar jackc avatar briandunn avatar

Watchers

Josh Branchaud avatar James Cloos avatar  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.