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.
This commit is contained in:
Sean Zhu 2016-07-18 16:59:16 -07:00 committed by Guillermo Rauch
parent b6e5bf63c7
commit 610d6c6d3e

View file

@ -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')
));