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) {
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\''
];
}