Created
June 11, 2014 00:19
-
-
Save zachharkey/d1690d7982a195fdb01d to your computer and use it in GitHub Desktop.
Use drush to save a list of all enabled non-core modules to a text file, then disable/re-enable all modules on that list
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
drush pml --no-core --type=module --status=enabled --pipe > modules.txt | |
cat modules.txt | xargs drush -y dis | |
cat modules.txt | xargs drush -y en |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment