-
Notifications
You must be signed in to change notification settings - Fork 39
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
Support for Bash on the Windows Subsystem for Linux? #16
Comments
I did some hacking yesterday to see if the command could be changed to use the windows toolchain instead. I noticed that the pid passed into https://github.com/hharnisc/hypercwd/blob/master/index.js is not the process id of hyper itself, so it can't be used to identify the session, unless there is a way to map that into a process id. Also note that since hyper is launched from windows, the node module hypercwd is also launched from windows. I probably need to look into the hyper code to know what id are they passing around. I'm just using |
@hharnisc just had a chance to test today, doesn't appear to work with bash. I even tried re-installing all modules, no dice. |
Thank you for trying this out @JacobDB - I wonder did it complain about |
Yea, it seems fairly intermittent. It happens most often when |
Sharing some context here about how the working directory is detected, on Windows Regex: https://github.com/hharnisc/hypercwd/blob/master/index.js#L13 My guess what is happening here is that |
Thanks for the feedback @hharnisc. I can't really help here fixing this issue because of my limited background, but I will share some information about how I'm using cwd now hoping this has some value for you to keep working on this. As my shell is zsh and I'm using oh-my-zsh, I can use a plugin called last-working-directory that stores the last path in cache (I think it writes the path on a file everytime I cd on my term). This plugin implements the So, with that command available, I setup my shell to manually |
Hi everyone, I just switched to Windows and WSL and I'm facing the same issue. In hyper I'm running zsh with the following shell: 'C:\\Windows\\System32\\bash.exe',
shellArgs: ['-c', 'zsh'] I did some digging into If I might fork Cheers |
Any progress on getting this working? |
Hey @JacobDB 👋 I've added a help wanted badge on this one. I don't have enough time to fully implement this, but would accept a patch from the community. Probably better someone else do this since I'm not a daily user of this setup 😄 |
@hharnisc this might help? henrikruscon/hyper-statusline#73 |
@Stanzilla I don't think that will help, I am just ignoring commands in wsl bash |
@enwin Have you tried what you said earlier?
I forked hyper to share However, everything is supposed to be private (judging by the |
Running Hyper with Bash on WSL as the specified shell in
.hyper.js
, this extension doesn't work properly. It just opens in the user directory as usual.Would you be able to add support for Bash on WSL?
The text was updated successfully, but these errors were encountered: