-
Notifications
You must be signed in to change notification settings - Fork 19
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
Windows Support (MSYS2/git bash) #178
Comments
Hi, RESH works in WSL on Windows. My guess is that MSYS2 Bash and shell in Git for Windows is not actual bash so it won't likely have all the bash features RESH needs. If you want to, you can clone the repo and try to build and install RESH from source in MSYS2 or Git Bash. (git clone, cd into the directory, and |
- check for $MSYSTEM since uname contains version - Use nohup to daemonize - closes curusarn#178
Thanks @curusarn I started a branch on my fork will minimal changes to allow install on windows, and noted the following:
In summary I think the biggest hurdle is the perf impact, do you think the bottleneck is in shell or go? |
This error looks like the way Resh gets current time fails. Is The TUI gets a little slow when the searched history is very large (e.g. very large preexisting bash history). Could this be the case? How many lines in your bash history? What do you mean by Resh does add some "invisible commands" to PS1 to be able to record history with directory, time, status, etc. I'm wondering if it the history recording works at all if the prompt gets broken. Can you check that commands are being recorded to Resh history? This is how you can test it:
You should see the
Go should work the same on all platforms so the it shouldn't be slower on Windows than it is in WSL, on Linux or macOS. So based on that I would suspect shell to be the cause of the slowdown. There can be differences how the shell behaves between platforms. |
Yes, its the proper GNU date, so it prints the same seconds as on Linux.
I'm pretty sure its the PS1 manipulation thats causing the slowdown. My bash history is 5000 lines for reference. |
Hi @ciarancourtney, I have released RESH beta version: https://github.com/curusarn/resh/releases/tag/v3.0.0-rc2 The install script and shell files still don't recognize Windows so you will need some patches but the binaries are there. Let me know if this helps. |
If the prerequisites are 'Standard stuff: bash(4.3+), curl, tar, ..' the MSYS2 Bash shell, or the minimal one that comes with Git for Windows, should satisfy these requirements.
The text was updated successfully, but these errors were encountered: