Last active
March 9, 2016 14:38
-
-
Save garethellis36/d6fc429bb59f9206296a to your computer and use it in GitHub Desktop.
Disable XDebug when running composer in Git Bash for Windows - add this to ~/.bashrc
This file contains 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
function composer() | |
{ | |
COMPOSER="$(which composer)" | |
sed -i -e 's/zend_extension=C:\\php5.6\\ext\\php_xdebug-2.3.2-5.6-vc11-nts.dll/;zend_extension=C:\\php5.6\\ext\\php_xdebug-2.3.2-5.6-vc11-nts.dll/g' /c/php5.6/php.ini | |
$COMPOSER "$@" | |
sed -i -e 's/;zend_extension=C:\\php5.6\\ext\\php_xdebug-2.3.2-5.6-vc11-nts.dll/zend_extension=C:\\php5.6\\ext\\php_xdebug-2.3.2-5.6-vc11-nts.dll/g' /c/php5.6/php.ini | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment