Handy Drupal Core Development
Some quick tips for better productivity when developing Drupal core:
- Alias your editor to
e. If you use a GUI editor see if it comes with a command-line shortcut to use. TextMate by default hasmate. Not nearly short enough ;). - Set up a
dcommand to perform diffs. I use the following:#!/bin/bashThis opens up my editor afterwards so I can review the patch before submitting. The
cvs diff -u -N -F^f . | grep -v -e ^\? > $1.patch
e $1.patchgrepstrips out unnecessary junk (unknown files). - Set up a
pcommand to apply patches. I use the following:#!/bin/bashThis will take a patch URL and apply it locally.
wget -O - $1 | patch -p0
Anyone else have anymore ideas?