-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Unable to change the CMD command history buffer size #13385
Comments
I think this is a problem of cmd.exe, Windows Terminal is just host for shells and console applications. |
How exactly is this a problem with CMD? CMD exposes both options (command history and screen history), WT only exposes one (screen history). |
Now I understand, I completely forgot about this function. Yes it shows only 50 history items in WT then |
This would be a great idea for a potential user extension for Windows Terminal. But as far as I know there currently aren't any plans to offer shell-specific settings within the settings UI of Windows Terminal ourselves - it wouldn't align with the fundamental idea that Windows Terminal is just a "terminal" and shells need to provide their configurability in some other way. In case of cmd.exe you can achieve your goal in two ways. As
Into the Alternatively, and maybe the safer option, you could modify your cmd profile to have a command line like this:
|
Unfortunately, this is not a shell setting. This is the murky gray area between the console and the shell. In our case, it is the console host that stores command history and maintains the buffers. We are tracking making this configurable or infinite at /dup #2558 :) |
Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
It's almost 3 years of tracking. |
That's true. Most folks who use Terminal moved on to newer shells that are receiving maintenance--which also generally maintain their own history data--rather than cmd, so it has not been prioritized very highly. |
That's quite the understatement. Unfortunately, |
That one is closed. |
There is a bug in the kernel and the fix for |
Windows Terminal version
1.13.11431.0
Windows build number
10.0.19043.1645
Other Software
No response
Steps to reproduce
When running CMD inside WT, there seems to be no way to change the history buffer size like I can do when running CMD natively, it is stuck at 50, which is not enough.
This CMD option is not exposed via the settings:
Expected Behavior
Able to change the command history buffer size.
Actual Behavior
Unable to change the command history buffer size.
The text was updated successfully, but these errors were encountered: