fix echo issue in config pref (#1633)

* fix echo issue in config pref

* fix spacing inconsitency
This commit is contained in:
Henrik 2017-03-10 18:29:42 +01:00 committed by Matheus Fernandes
parent d1997e1da3
commit 3793adabb5

View file

@ -213,19 +213,19 @@ export function moveTo(i) {
function getEditCommand(shell, isWin) { function getEditCommand(shell, isWin) {
if (isWin && shell.includes('bash')) { if (isWin && shell.includes('bash')) {
return [ 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) { } else if (isWin) {
return [ 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 [ return [
' echo Attempting to open ~/.hyper.js with your \\$EDITOR',
// eslint-disable-next-line no-template-curly-in-string // eslint-disable-next-line no-template-curly-in-string
' bash -c \'exec env ${EDITOR:=nano} ~/.hyper.js\'', ' bash -c \'exec env ${EDITOR:=nano} ~/.hyper.js\''
'echo Attempting to open ~/.hyper.js with your \\$EDITOR'
]; ];
} }