From 21b75cb86bab74d39643f9c829d8217ddf18e8d4 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Fri, 1 May 2015 01:44:12 +0000 Subject: [PATCH] Add editor to the terminal --- node_modules/vfs-local/localfs.js | 2 +- plugins/c9.ide.terminal/tmux_connection.js | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/node_modules/vfs-local/localfs.js b/node_modules/vfs-local/localfs.js index 2ecf079e..ca64fc3c 100644 --- a/node_modules/vfs-local/localfs.js +++ b/node_modules/vfs-local/localfs.js @@ -1829,7 +1829,7 @@ module.exports = function setup(fsOptions) { options.command = "echo '[Idle]'"; if (options.terminal) - args.push("export ISOUTPUTPANE=0;" + BASH + " -l"); + args.push("export ISOUTPUTPANE=0; export EDITOR='`which c9` open --wait'; " + BASH + " -l"); else if (options.command) args.push((BASH + " -l -c '" diff --git a/plugins/c9.ide.terminal/tmux_connection.js b/plugins/c9.ide.terminal/tmux_connection.js index 3cd642fc..fafcfadb 100644 --- a/plugins/c9.ide.terminal/tmux_connection.js +++ b/plugins/c9.ide.terminal/tmux_connection.js @@ -157,9 +157,6 @@ module.exports = function(c9, proc, installPath, shell) { options.output = false; options.terminal = true; options.detachOthers = !session.hasConnected; - options.env = { - "EDITOR": "`which c9` open --wait" - }; } // Connect to backend and start tmux session