bash filename completion for Drupal Script Library

I just wrote a small script called 'bash_completion' that facilitates bash filename completion.  It works with the Drupal Scripts Library to allow library scripts to use filename completion over installed sites.

To use it, just source the file after setting up the DRUPAL_INSTALL_ROOT environment variable and your PATH.  You can see an example on the page where I list my DreamHost .bashrc file (see lines 40-45 of the .bashrc file).

This makes using commands like dpushd (a bash shell function that is enabled by drupalReport.sh functionality) easy!

 

Free Tag: