What kind of computer do you have? And don't say "a white one."
What kind of computer do you have? And don't say "a white one."
Update: This script has been improved here.
While developing a new Drupal site, one tends to install lots of modules to shape his site into something specific. The problem is, doing so through a GUI takes much more time than I care to spend.
For every module I install, that's about 90 seconds of boring work that requires my undivided attention. YUCK.
There's a much better way. Logged into my shell on the server, I wrote a relatively simple function in my .bashrc file.
function getmod { if [ -z "$1" ] then echo "Error: specify a URL." return fi FILE="wget.tar.gz" cd ~/html/sites/all/modules/ wget $1 -O $FILE tar -xvf $FILE rm $FILE return }
getmod [paste URL of .tar.gz file]