Created
March 31, 2016 23:42
-
-
Save yvoronoy/abbe882bb0e4d8c54890f021fe86d809 to your computer and use it in GitHub Desktop.
My Magento Bash Aliases
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
#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