-
Notifications
You must be signed in to change notification settings - Fork 58
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
interactive flag #24
Comments
Actually in the process of building this from source to see if it actually fixes my problem. Need to install rust first. Will update when I can. |
Also while waiting for this to install i did some other testing. As far as I'm aware, the I tested running these commands as so:
and seemed to work very quickly Not sure if that's an option for you. |
Hah, i think this PR does everything I've talked about as well. |
Yes, exactly. The discussion that led to PR #23 is in issue #16. The reason for the As you noticed, startup can be slow if If you have access to a Windows insider build and have Rust installed, it would be great if you could test PR #23 to see if it works for you. Any feedback is welcome. I'm closing this issue because the use case is already discussed elsewhere. However, feel free to provide further feedback here or on #23. |
Ahhh.. I didn't realize the ENV variable were part of an 'unreleased' build. I thought it came when they added wsl.exe (I guess that explains my small failures when i did try to look for it). I'll keep an eye out when the new build comes out and ill try the PR before/after its merged in. |
I think reading through everything again, it seems I could set those variables myself and test the PR? It's late night for me, so can try in the morning when I get a chance, but just wondering if that's true. |
You always need to set these variables yourself for the PR, it only changes the behavior of wslgit if the variables were set by the user. The code to respect these variables is currently only available in the PR, so you need to build it yourself. For the variables to have an effect, they must be set before bash starts, so they must already be set by WSL before executing bash. This feature of forwarding arbitrary environment variables to WSL is currently only available in Windows Insider builds. |
Thanks for clearing that up. As I said I'll wait for the insiders build to get released and try it then. For now, the code looks simple enough I was able to recompile without the |
wslgit/src/main.rs
Line 83 in 4a61427
There a reason the
-i
flag is used here? I have an issue where I use https://github.com/magicmonty/bash-git-prompt which has problems with slowness on my wsl terminal. While I deal with it using it on my own, this severely slows down my usage of wslgit becasue it waits for that to constantly load.If the
-i
flag were removed that would fix my problem, but I'm not sure if that would affect others? Whats the reason for using that flag if you're making 1 off commands anyway each time you run git?The text was updated successfully, but these errors were encountered: