Merge pull request #488 from chabou/prevent_shell_history_pollution

Add comment for PR #478
This commit is contained in:
Leo Lamprecht 2016-07-28 21:55:06 +02:00 committed by GitHub
commit 8ec4e7ae74

View file

@ -147,6 +147,7 @@ export function showPreferences () {
rpc.once('session data', () => { rpc.once('session data', () => {
dispatch(sendSessionData( dispatch(sendSessionData(
uid, uid,
// Leading space prevents command to be store in shell history
[' echo Attempting to open ~/.hyperterm.js with your \$EDITOR', // eslint-disable-line no-useless-escape [' echo Attempting to open ~/.hyperterm.js with your \$EDITOR', // eslint-disable-line no-useless-escape
' echo If it fails, open it manually with your favorite editor!', ' echo If it fails, open it manually with your favorite editor!',
' bash -c "exec env $EDITOR ~/.hyperterm.js"', ' bash -c "exec env $EDITOR ~/.hyperterm.js"',