Hyper: Issue setting Bash shell through Bash on Ubuntu on Windows

Created on 16 Dec 2016  路  5Comments  路  Source: vercel/hyper

Issue

When I set my shell to /usr/local/bin/zsh (with zsh installed, I know it works because I've been using bash and zsh through command prompt) I get an error that says this:

capture

A JavaScript error occurred in the main process

Uncaught Exception:
Error: File not found:
at Error(native)
at Server. (C:\Users\oreo4\AppData\Localhyper\app-1.0.0\resources\appnode_modules\pty.js\lib...:9)
at emitOne (events.js:96:13)
at Server.emot (events.js:188:7)
at Pipe.onconnection (net.js:1459:8)

Most helpful comment

Alternatively, you can specify the the ['-c', 'zsh', '-i', '-l'] args on Hyper's shellArgs config option to automatically start zsh.

All 5 comments

Hi, not sure if this applies to your case, but when running from windows you have to set shell to the location of bash.exe. I was having the same issues but setting shell: 'C:\\Windows\\System32\\bash.exe' works for me. I've set zsh as the default terminal in ubuntu so it automatically opens that, but if you want to specify that in the settings I don't know how.

You have to launch zsh in your ~/.bashrc when bash starts since zsh is not a Windows compatible shell:

if test [ -t 1 ]; then
exec zsh
fi

Alternatively, you can specify the the ['-c', 'zsh', '-i', '-l'] args on Hyper's shellArgs config option to automatically start zsh.

@ebemunk Your fix worked! Thank you!

@specro I had already done that, as I said, zsh works fine

Seems like this is resolved? @Artillect re-open if I'm wrong :)

Was this page helpful?
0 / 5 - 0 ratings