From 57146c12b42e5140e4c9ae0c909902fdac0a3733 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 11 Oct 2013 19:59:30 -0300 Subject: [PATCH] Warn user that commands are being run in another directory --- src/Composer/Command/GlobalCommand.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Composer/Command/GlobalCommand.php b/src/Composer/Command/GlobalCommand.php index 0ddfc4ede..5fe7e4f47 100644 --- a/src/Composer/Command/GlobalCommand.php +++ b/src/Composer/Command/GlobalCommand.php @@ -72,6 +72,7 @@ EOT // change to global dir $config = Factory::createConfig(); chdir($config->get('home')); + $output->writeln('Changed current directory to '.$config->get('home').''); // create new input without "global" command prefix $input = new StringInput(preg_replace('{\bg(?:l(?:o(?:b(?:a(?:l)?)?)?)?)?\b}', '', $input->__toString(), 1));