From b714bd1312f0eede1052f7d84dabf70d199d0c91 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Wed, 6 Dec 2017 13:41:21 +1100 Subject: [PATCH] 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 --- config/zsh/all/functions | 2 +- config/zsh/functions/composer | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) delete mode 100644 config/zsh/functions/composer diff --git a/config/zsh/all/functions b/config/zsh/all/functions index 566dc7b..e9979a9 100644 --- a/config/zsh/all/functions +++ b/config/zsh/all/functions @@ -2,5 +2,5 @@ # 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 # to call one in a script so non-interactive shells need them. -autoload composer enphp unphp +autoload enphp unphp autoload -Uz zargs zmv diff --git a/config/zsh/functions/composer b/config/zsh/functions/composer deleted file mode 100644 index 1a4caf8..0000000 --- a/config/zsh/functions/composer +++ /dev/null @@ -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 "$@"