From df1578689f89e3d8d48b693dedb8c5fdbaffc521 Mon Sep 17 00:00:00 2001 From: David White Date: Thu, 9 Oct 2014 13:40:16 +0100 Subject: [PATCH] Replace "vi" with $EDITOR in config command --- src/command-line/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command-line/config.js b/src/command-line/config.js index 2385ef87..4080ff8f 100644 --- a/src/command-line/config.js +++ b/src/command-line/config.js @@ -10,7 +10,7 @@ program .description("Edit config: '" + Helper.HOME + "/config.js'") .action(function() { child.spawn( - "vi", + process.env.EDITOR || "vi", [Helper.HOME + "/config.js"], {stdio: "inherit"} );