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;