-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Cmder for Windows - Add Bash
, Powershell
, mintty
and run as Admin.
#2942
base: development
Are you sure you want to change the base?
Conversation
development dax
So this is now broken on my Windows 11.
No idea why. Double clicking on the below works: And these are what cmder.exe uses to launch Need to run them differently I guess but I don't know how. I believe it works on Windows 10 not certain though. |
@daxgames It appears you're essentially opening We open the shell (e.g.
And do this instead:
I don't believe it would make a difference on Win10/Win11 though. I'm a bit tight on time so I can't exactly verify, but at my workplace whenever I need to use bash, I always call Sidenote, if you'd like some Windows 10 VMs, let me know so I can set one up for the you so you can clone the development version of Cmder in it for testing, if it helps. I can spin one up at work for this purpose. |
@DRSDavidSoft the last time I tested this on Windows 10 it all worked perfectly. I would not have opened the PR if it hadn't. I'm not sure I ever tested it in Windows 11 prior to yesterday. One thing I noticed on Windows 11 testing that I hadn't seen on Windows 10 is that cmd and powershell are opening up in Windows Terminal instead of cmd.exe and powershell.exe 'legacy' windows. |
I think the difference is Windows 11 prefers Windows Terminal and Windows 10 prefers conhost.exe???? |
You are missing the original point of Cmder for Windows, aka Cmder Micro, was to launch the terminal emulators that are already there since none are included with Cmder. It just does not work on Windows 11 as it does on Windows 10. |
@daxgames I believe the idealistic approach is for Cmder's launcher to hand over the task of choosing the terminal emulator (be it WT, So, preferably, we should off hand the terminal part to OS and just launch the shell. The code needs to be modified for this so that Alternatively, we should launch a terminal and run the shell in it. This can be In my humble opinion it doesn't make sense to bind bash to mintty. Sure, git-for-windows and mingw install both, but it doesn't mean that bash is exlusive to mintty. Bash can be ran in WT & conhost, and mintty can host clink, powershell, etc. This is just my opinion, I'll be glad to hear what you think. |
I like the fact there is an embedded terminal emulator and there always should be. Cmder is after all a portable shell env. I also like that there are currently choices of embedded terminal emulators. I don't believe it should just be up to whatever is installed and available on the OS unless that is what the user wants. I think your previous reply is what I said in my previous post but to be clear this PR attemps to: In the absence of a
Basically above is what happens in Windows 10. The code in this PR does the following if there is no
I REALLY don't care about Anything you mentioned above and not currently in this PR is way beyond my knowledge of C++. It is simply not worth the time it would take me to figure out something I will never use. What I initially did works great on Windows 10 and I do not have the time required to figure out how to get a similar outcome on Windows 11+. |
Great poins, as always, @daxgames. I need to investigate the difference between Windows 10 and Windows 11 regarding this, as the main support for 10 is basically ending in about a year or so according to Microsoft and it will enter extended support. Hopefully I'll understand the issue and solve it so it will work the same way it did on 10. Regarding handing some of the batch tasks to the launcher, I agree with your points. Also, I have been wanting to do a re-write of the launcher with the intent of modularizing its code into re-usable sections for a while now. I would like to put my focus into the development branch and move some of the batch tasks into the launcher, if that helps. We can decide which functionality is best suited as a script and which one is best to be written in C++. Thanks as always for implementing this! 👍🏻 |
Adds
Cmder.exe /task cmder [/a]
.Cmder.exe /task bash [/a]
.Cmder.exe /task mintty [/a]
.Cmder.exe /task powershell [/a]
.Cmder.exe
command line argument/a
used to start native terminal sessions asAdministrator