Remove the 'composer' wrapper function since now I'm just disabling xdebug all the time, except when I actually need to use it - this gives way better perf

This commit is contained in:
Danielle McLean 2017-12-06 13:41:21 +11:00
parent 255577e4fb
commit b714bd1312
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
2 changed files with 1 additions and 6 deletions

View file

@ -2,5 +2,5 @@
# autoloaded functions must be declared in every kind of zsh: they aren't # autoloaded functions must be declared in every kind of zsh: they aren't
# inherited in the environment so non-login shells need them, and you'll want # inherited in the environment so non-login shells need them, and you'll want
# to call one in a script so non-interactive shells need them. # to call one in a script so non-interactive shells need them.
autoload composer enphp unphp autoload enphp unphp
autoload -Uz zargs zmv autoload -Uz zargs zmv

View file

@ -1,5 +0,0 @@
#! zsh
# Composer runs significantly faster if xdebug is unloaded.
local conf="$(php -r 'echo dirname(php_ini_loaded_file());')"
(cd $conf; rsync -ar --delete-after --exclude ext-xdebug.ini conf.d/ conf-without-xdebug.d/)
PHP_INI_SCAN_DIR=$conf/conf-without-xdebug.d php =composer "$@"