New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hyper config to use bash with mingw-w64 instead CMD. #1252
Comments
Below works for me: // 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'],
// for environment variables
env: {
TERM: 'cygwin',
}, |
I tried with these settings. Both Hyper and MINGW64 console windows open to blank screens, there's a pause of about a minute or so, then the MINGW64 console displays the prompt while the Hyper window remains blank. |
It shouldn't launch MINGW64 in a separate window. Have you tried with the latest (2.11.0) git client for windows? Note: |
Thanks for mentioning that. I had tried earlier with |
Yea this works great. But any idea how to to supply a default startup directory for the same? |
Ok just answering my own question here. You'll find a .bashrc file in your home folder, you can just add a cd command there. |
Still doesn't works with |
@Faleij It works but I have some issue with the git terminal, like the command |
@fknop |
@Faleij shell path and args works for me. But I am unable to use 'clear' command or CTRL+L, it moves the cursor to the top of the tab but didnt clear the text. CTRL+C/CTRL+X not working too. |
@t-khan-k Have you added`the environment variable TERM with the value |
This may be tangentially related, but I'm running into this as well. I am trying to set Hyper to use Docker Quick Start. I'm having a hard time reasoning about the shellArgs with this. How do I do it? I came up with but I'm nearly sure that my pathing is wrong. |
@Faleij I tried putting your new shell and shellArgs into config-default.js file. I rebuilt the application and ran, but it appears to have zero effect, regular old cmd comes up. I have confirmed that I have a git-cmd.exe at C:\Program Files\Git which does work. Anyone have any ideas? |
@rygo6 not sure what |
in hyper.js file
|
Anyone get this working wit Git 2.16.1? |
@styfle are you sure you set the env var TERM to 'cygwin' as in the gist? |
I'm not able to get this working with the latest version of Git. I've used this config for over a year now on two computers. Today I was setting up a new computer and downloaded the latest version of Git. Launching Hyper with the config causes it to instantly close. No related logs in the devtools. Is there a log file I should check somewhere? Git (doesn't work): 2.16.1.windows.4 (I don't have time at the moment to test all the versions in between) Funny enough, I tried manually running the command ( I decided to just install the older version of Git for the time being. |
I did what @Faleij says! It worked for me!
|
I wonder if this issue can be closed now. It worked fine with MSYS64 (MSYS2), albeit quite slow performance compared to mintty
Note however there is other weird behaviour, e.g. when resizing the window (text reflows) and using vim (doesn't redraw the screen properly) |
I have git installed on my machine which works fine with VS Code's integrated terminal.
As you can see the comments provided are pretty helpful. In my case I just provided the path for Git's terminal i.e Only issue I'm seeing right now is that the clear command does not play well with this. |
@behzadev What version of git are you running? Try updating. |
@Faleij latest (v2.19.1) |
@behzadev I tried your config with all plugins and it works for me, I am not sure what is causing the color issues for you. Try forcing TERM env in hyper.js config:
|
@Faleij When I comment this line, everything works out:
But then this is not using git shell anymore. I have also tried changing color for terminal in git to xterm256 |
Found a little issue. Hyper now stores it in Roaming App Data C:\Users\user\AppData\Roaming\Hyper.hyper.js |
No description provided.
The text was updated successfully, but these errors were encountered: