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 protected]:rylnd/dotfilesThen, to install (or to get the latest version):
cd dotfiles
setup/pair upgradeFor 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 installDefine 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 -qin 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/emailYou 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/emailThe dotfiles that I actually use.
Assuming you've cloned the repo:
cd path_to_repo
setup/dotfileswill 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.
