A collection of scripts and commands that I use every day.
Configures the git author/email for multiple developers when pair programming
First, pull down the repo:
git clone email@example.com:rylnd/dotfiles
Then, to install (or to get the latest version):
cd dotfiles setup/pair upgrade
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
Define the pair script in your shell by adding the following to a shell startup file (
# 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'
$ 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
The dotfiles that I actually use.
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).
Scripts to aid in the install/update process
shpec tests to document the behavior of these scripts.
Pull requests are always welcome.