From 3793adabb5bd53ebcfb7ff3eb3c4aa6516e7dfa6 Mon Sep 17 00:00:00 2001 From: Henrik Date: Fri, 10 Mar 2017 18:29:42 +0100 Subject: [PATCH] fix echo issue in config pref (#1633) * fix echo issue in config pref * fix spacing inconsitency --- lib/actions/ui.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/actions/ui.js b/lib/actions/ui.js index 9d17020c..192db04a 100644 --- a/lib/actions/ui.js +++ b/lib/actions/ui.js @@ -213,19 +213,19 @@ export function moveTo(i) { function getEditCommand(shell, isWin) { if (isWin && shell.includes('bash')) { return [ - ' nano .hyper.js', - 'echo Attempting to open .hyper.js with nano' + ' echo Attempting to open .hyper.js with nano', + ' nano .hyper.js' ]; } else if (isWin) { return [ - ' start notepad "%userprofile%\\.hyper.js"', - 'echo Attempting to open .hyper.js with notepad' + ' echo Attempting to open .hyper.js with notepad', + ' start notepad "%userprofile%\\.hyper.js"' ]; } return [ + ' echo Attempting to open ~/.hyper.js with your \\$EDITOR', // eslint-disable-next-line no-template-curly-in-string - ' bash -c \'exec env ${EDITOR:=nano} ~/.hyper.js\'', - 'echo Attempting to open ~/.hyper.js with your \\$EDITOR' + ' bash -c \'exec env ${EDITOR:=nano} ~/.hyper.js\'' ]; }