From 93ce87a84e5fdc91ac493b435230fa9fbbb64288 Mon Sep 17 00:00:00 2001 From: Niels Keurentjes Date: Thu, 11 Feb 2016 09:24:42 +0100 Subject: [PATCH] Prefer 'editor' on a system that supports alternatives. --- src/Composer/Command/ConfigCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Command/ConfigCommand.php b/src/Composer/Command/ConfigCommand.php index 722bc94cc..0f4637ef3 100644 --- a/src/Composer/Command/ConfigCommand.php +++ b/src/Composer/Command/ConfigCommand.php @@ -188,7 +188,7 @@ EOT if (Platform::isWindows()) { $editor = 'notepad'; } else { - foreach (array('vim', 'vi', 'nano', 'pico', 'ed') as $candidate) { + foreach (array('editor', 'vim', 'vi', 'nano', 'pico', 'ed') as $candidate) { if (exec('which '.$candidate)) { $editor = $candidate; break;