Skip to content

Instantly share code, notes, and snippets.

@artmouse
Forked from jhoelzl/.bashrc
Created August 9, 2016 16:32
Show Gist options
  • Save artmouse/b721a06271c13401bdadcf3b097f1da9 to your computer and use it in GitHub Desktop.
Save artmouse/b721a06271c13401bdadcf3b097f1da9 to your computer and use it in GitHub Desktop.
Generate modman mapping file for each module file individually
# Add this command to your .bashrc and then use "gm" in your Magento modman folder to create a modman mapping file
# Generate modman
function gm() {
for i in `find . -type f | grep -v \.git/ | grep -v "^.$" | grep -v "modman" | sed 's/\.\///'`; do echo -e ${i}' '${i};done > modman
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment