With this change, it remembered all of them (and more, of course). into a Command Prompt in Windows Terminal without this change, and it only remembered the most recent 50 commands. I tested this by pasting 100 lines of: echo 1 (Adjusting, of course, if you changed the filename/location)Īny new Command Prompt profile you open should now have an expanded command history (including F7 support). To: %SystemRoot%\System32\cmd.exe /k %UserProfile%\winterm_start.cmd Under the General tab (the first one), change the Command Line. You can change this for all CMD sessions in Windows Terminal by:Ĭreating a file winterm_start.cmd (or whatever you want to call it) in your Profile directory C:\Users\ (or wherever you want to place it) with: off That will set the command history size to 999, overriding whatever is set in ConHost, as well as the default size of 50 that you are seeing in Windows Terminal. That's the responsibility of the shell.Īnd, as a shell, CMD itself actually does have this functionality through doskey.exe. It's not the Terminal's responsibility to remember the commands executed by a commandline client. As one of the other Microsoft team members said in that same Github thread: The good news is that you should be able to replicate this functionality with other features. Only when hosting a CMD shell, however, does that setting actually control the command history length.Īnd that was, to quote one of the Windows Terminal developers (who also is responsible for maintaining ConHost):Īn architectural mistake the likes of which we are not intending to make again. You can also see the "Command History" option that you reference in any other terminal-based application that you run in Windows Console Host, such as PowerShell or WSL. WebStorm 2021.3, the last major update of the year, is here This update is jam-packed with long-awaited enhancements, including support for remote development, improved HTML completion, reworked Deno integration, and others. While most people think of this dialog as part of CMD, it's actually the "Windows Console Host" ( conhost.exe or "ConHost"), the legacy (20 years) terminal application for Windows that Windows Terminal is designed to replace. This is the equivalent of the CMD "screen buffer size" First, some terminology to get us on the same page:
0 Comments
Leave a Reply. |