From 610d6c6d3e4caf8f5800ea07eb292c808653926f Mon Sep 17 00:00:00 2001 From: Sean Zhu Date: Mon, 18 Jul 2016 16:59:16 -0700 Subject: [PATCH] Make preference-opening command universal (#267) The `$EDITOR ~/.hyperterm.js && exit` requires that the default shell recognize variables as commands and to recognize the `&&` syntax, so it does not work with fish shell. The new command works with all common shells, including fish. --- app/lib/actions/ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/actions/ui.js b/app/lib/actions/ui.js index 68e55375..046d711e 100644 --- a/app/lib/actions/ui.js +++ b/app/lib/actions/ui.js @@ -131,7 +131,7 @@ export function showPreferences () { uid, ['# Attempting to open ~/.hyperterm.js with your $EDITOR', '# If this doesn\'t work, open it manually with your favorite editor!', - '$EDITOR ~/.hyperterm.js && exit', + 'exec env $EDITOR ~/.hyperterm.js', '' ].join('\n') ));