Skip to content

Instantly share code, notes, and snippets.

@yvoronoy
Created March 31, 2016 23:42
Show Gist options
  • Save yvoronoy/abbe882bb0e4d8c54890f021fe86d809 to your computer and use it in GitHub Desktop.
Save yvoronoy/abbe882bb0e4d8c54890f021fe86d809 to your computer and use it in GitHub Desktop.
My Magento Bash Aliases
#Magento Aliases
alias m1.clear.cache='echo "rm -rf var/*cache*"; rm -rf var/*cache*'
alias m1.show.version='cat app/Mage.php | grep -A 10 "function getVersionInfo"'
alias m1.mysql.debug.enable='\
sed -i "" "s/_debug[ ]*= false/_debug = true/g" lib/Varien/Db/Adapter/Pdo/Mysql.php; \
sed -i "" "s/_logAllQueries[ ]*= false;/_logAllQueries = true;/g" lib/Varien/Db/Adapter/Pdo/Mysql.php; \
sed -i "" "s/_logCallStack[ ]*= false;/_logCallStack = true;/g" lib/Varien/Db/Adapter/Pdo/Mysql.php';
alias m1.mysql.debug.disable='\
sed -i "" "s/_debug[ ]*= true/_debug = false/g" lib/Varien/Db/Adapter/Pdo/Mysql.php; \
sed -i "" "s/_logAllQueries[ ]*= true;/_logAllQueries = false;/g" lib/Varien/Db/Adapter/Pdo/Mysql.php; \
sed -i "" "s/_logCallStack[ ]*= true;/_logCallStack = false;/g" lib/Varien/Db/Adapter/Pdo/Mysql.php';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment