Hyper: Running $EDITOR fails when not a command

Created on 19 Jul 2016  Â·  4Comments  Â·  Source: vercel/hyper

In zsh and others I could set EDITOR=subl -w. In HyperTerm I get:

screen shot 2016-07-18 at 15 44 14

Ignore the ugly glyphs, setting up a new mac and battling with fonts 😅

help wanted Bug

Most helpful comment

Similar problems when using Fish shell
screen shot 2016-07-18 at 16 49 15

Maybe this command should be invoked with a shell wrapper, to prevent any issues with custom configuration?

All 4 comments

Similar problems when using Fish shell
screen shot 2016-07-18 at 16 49 15

Maybe this command should be invoked with a shell wrapper, to prevent any issues with custom configuration?

with zsh, I can set EDITOR=subl or EDITOR='subl' on hyperterm and iterm and have $EDITOR ~/.hyperterm.js work. export EDITOR='subl -w' fails with "zsh: command not found: subl -w" on both iterm and hyperterm, and sourcing export EDITOR=subl -w fails with .zshrc:export:64: not valid in this context: -w on both as well.

I don't think it's a hyperterm-specific issue. Hope this helps.

From fish:

➜  ~ $EDITOR ~/.hyperterm.js && exit
Unsupported use of '&&'. In fish, please use 'COMMAND; and COMMAND'.
fish: $EDITOR ~/.hyperterm.js && exit

This has been fixed since this, as it now executes bash -c 'exec env ${EDITOR:=nano} ~/.hyper.js'.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

leo picture leo  Â·  3Comments

eoinmurray picture eoinmurray  Â·  3Comments

cooperpellaton picture cooperpellaton  Â·  3Comments

weabot picture weabot  Â·  3Comments

alejandrofloresm picture alejandrofloresm  Â·  3Comments