Hyper: Unix based shell on Windows?

Created on 28 Apr 2017  ·  10Comments  ·  Source: vercel/hyper

  • [x] I am on the latest Hyper.app version
  • [x] I have searched the issues of this repo and believe that this is not a duplicate
  • OS version and name: Windows 10
  • Hyper.app version: 1.3.1
  • Link of a Gist with the contents of your .hyper.js: N/A
  • Relevant information from devtools _(CMD+ALT+I on Mac OS, CTRL+SHIFT+I elsewhere)_: N/A
  • The issue is reproducible in vanilla Hyper.app: Is Vanilla

Issue

First of all, sorry, not like a real Issue, is more like a question/suggestion.

There is any plugin or any way to use Hyper like a unix based bash (git bash for windows) ? Except for the Windows Subsystem option?

I have the git bash for windows but love the look and feel of Hyper!

Thank you,
Samuel

Most helpful comment

Hi, I found this which points hyper to Git allowing for those commands 👍 [referencing #1252]

    // the shell to run when spawning a new session (i.e. /usr/local/bin/fish)
    // if left empty, your system's login shell will be used by default
    shell: 'C:\\Program Files\\Git\\git-cmd.exe',

    // for setting shell arguments (i.e. for using interactive shellArgs: ['-i'])
    // by default ['--login'] will be used
    shellArgs: ['--command=usr/bin/bash.exe', '-l', '-i'],

Thanks @Faleij 👍

All 10 comments

Yes, there is a way.
Change the .hyper.js file (Edit->preferences) where it says shell add the path to git-bash's shell "path-to-git\bin\sh.exe"

Hope this helps

If you want to use the "Bash on Windows on Ubuntu" feature with Hyper, make the following changes in your .hyper.js file:

shell: 'C:\\Windows\\System32\\bash.exe',
shellArgs: ['--login'],

-Travis

Hi, I found this which points hyper to Git allowing for those commands 👍 [referencing #1252]

    // the shell to run when spawning a new session (i.e. /usr/local/bin/fish)
    // if left empty, your system's login shell will be used by default
    shell: 'C:\\Program Files\\Git\\git-cmd.exe',

    // for setting shell arguments (i.e. for using interactive shellArgs: ['-i'])
    // by default ['--login'] will be used
    shellArgs: ['--command=usr/bin/bash.exe', '-l', '-i'],

Thanks @Faleij 👍

Both solutions of @spences10 and @lucasbrewer worked for me, but there is a problem when I commit, the vi or vim don't work correctly, when I try to use arrow keys to navigate through the text it show an error "E349: No identifier under cursor" I will spend some time trying to find a workarround but if anyone has the solution, please share! :)

Thank you all

Is the "git shell" compatible? I like the fact that when you go into a git folder it gives you the status of the directory in the prompt.

Yes it is!

Except for that bug I mentioned.

@samuelmrp I have also experienced the bug with vi/vim when using the git bash shell. Did you find a workaround?

Use Bash on Ubuntu on Windows (WSL) https://github.com/zeit/hyper/issues/2385

Unfortunately not :(

Samuel Pereira
Desenvolvedor .NET
samuel.pereira@asteria.com.br samuel.[email protected]
Fone: +55 (11) 3645-3720 / Cel: +55 (35) 8808-2150

From: Kade [mailto:[email protected]]
Sent: sábado, 9 de dezembro de 2017 02:37
To: zeit/hyper hyper@noreply.github.com
Cc: samuelmrp samuel.pereira@asteria.com.br; Mention mention@noreply.github.com
Subject: Re: [zeit/hyper] Unix based shell on Windows? (#1773)

@samuelmrp https://github.com/samuelmrp Do I have also experienced the bug with vi/vim when using the git bash shell. Did you find a workaround?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/zeit/hyper/issues/1773#issuecomment-350423377 , or mute the thread https://github.com/notifications/unsubscribe-auth/ABSywdrVUNXSLOWiQTcUNcQWHfENa44Dks5s-g5fgaJpZM4NL5QJ . https://github.com/notifications/beacon/ABSywR41-Z9HzseFzHkV3BYQj7y140oiks5s-g5fgaJpZM4NL5QJ.gif

Was this page helpful?
0 / 5 - 0 ratings

Related issues

anthonyettinger picture anthonyettinger  ·  3Comments

aem picture aem  ·  3Comments

yvan-sraka picture yvan-sraka  ·  3Comments

laur1s picture laur1s  ·  3Comments

dbkaplun picture dbkaplun  ·  3Comments