Skip to content
/ dotfiles Public

A collection of scripts and commands that I use every day.

Notifications You must be signed in to change notification settings

rylnd/dotfiles

Repository files navigation

rylnd/dotfiles Build Status

A collection of scripts and commands that I use every day.

scripts/pair

Configures the git author/email for multiple developers when pair programming

Setup (Recommended)

First, pull down the repo:

git clone [email protected]:rylnd/dotfiles

Then, to install (or to get the latest version):

cd dotfiles
setup/pair upgrade

Setup (Automatic)

For a one-off install, simply paste the following into your command line:

curl -sL https://raw.github.com/rylnd/dotfiles/master/setup/pair | bash -s install

Setup (Manual)

Define the pair script in your shell by adding the following to a shell startup file (~/.bash_profile, ~/.bashrc, etc.):

# define the pair function
source "<PATH_TO_PAIR_SCRIPT>"

If you want to persist the pair between sessions, without having to call pair, you can do something like

# quietly set the previous pairing state
pair -q

in the same file as above.

A helpful alias if you don't like the spacebar:

alias unpair='pair -u'

Usage:

$ pair rylnd mathias   # Sets the author to 'Matt Gauger and Ryland Herrick'
$ pair -u              # Unsets the author/email

You can also set more than two users:

$ pair bigtiger devn mathias   # Sets the author to 'Jim Remsik, Devin Walters, and Matt Gauger'

And check your current configuration:

$ pair                  # Lists the current author/email

dotfiles

The dotfiles that I actually use.

Setup

Assuming you've cloned the repo:

cd path_to_repo
setup/dotfiles

will symlink the dotfiles to your home directory (but won't overwrite existing files).

setup/

Scripts to aid in the install/update process

shpec/

shpec tests to document the behavior of these scripts.

Contributing

Pull requests are always welcome.

About

A collection of scripts and commands that I use every day.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •