drush drupal-directoryfor drush 6x

Return path to a given module/theme directory.

drush drupal-directory

  • Aliases

    drupal-directory has 1 alias/es:

    drush dd

  • Arguments

    drupal-directory accepts 1 argument/s:

    target : A module/theme name, or special names like root, files, private, or an alias : path alias string such as @alias:%files. Defaults to root.

  • Options

    drupal-directory accepts 2 option/s:

    --component : The portion of the evaluated path to return.  Defaults to 'path'; 'name' returns the site alias of the target.

    --local : Reject any target that specifies a remote site.

  • Examples

    Navigate into the devel module directory

    cd `drush dd devel`

    Navigate to the root of your Drupal site

    cd `drush dd` 

    Navigate to the files directory.

    cd `drush dd files`

    Print the path to the files directory on the site @alias.

    drush dd @alias:%files

    Open devel module in your editor (customize 'edit' for your editor)

    edit `drush dd devel`/devel.module

  • Comments

    comments powered by Disqus