Command Prompt History #13765

Closed
opened 2026-01-31 03:51:30 +00:00 by claunia · 1 comment
Owner

Originally created by @ghost on GitHub (May 10, 2021).

I only use the Terminal for very simple tasks, and prefer cmd to powershell, because cmd is simpler for the basic use cases.
However, cmd has one major problem, that the history gets cleared if i restart cmd, i.e. i cannot use up arrow to get previous commands. I know that cmd is more or less in a frozen state, but i was wondering if it would be possible to add this functionality to cmd.
Due to the lack of this basic functionality, i have been using Cmder which comes with Clink to provide this functionality. I can still manually install clink and use it with cmd in Terminal, however if cmd comes with this basic functionality and people don't have to mess with 3rd party software, it would be much better.
So, would it be possible to add the functionality for persistent history to cmd/wt?

Originally created by @ghost on GitHub (May 10, 2021). I only use the Terminal for very simple tasks, and prefer cmd to powershell, because cmd is simpler for the basic use cases. However, cmd has one major problem, that the history gets cleared if i restart cmd, i.e. i cannot use up arrow to get previous commands. I know that cmd is more or less in a frozen state, but i was wondering if it would be possible to add this functionality to cmd. Due to the lack of this basic functionality, i have been using Cmder which comes with Clink to provide this functionality. I can still manually install clink and use it with cmd in Terminal, however if cmd comes with this basic functionality and people don't have to mess with 3rd party software, it would be much better. So, would it be possible to add the functionality for persistent history to cmd/wt?
Author
Owner

@zadjii-msft commented on GitHub (May 11, 2021):

I don't disagree that this would be nice to have in cmd.exe, but like you've mentioned, cmd.exe is unfortunately never going to get updated again. For additional reading: link. You'll just have to keep using clink with cmd, or switch to a modern shell like pwsh.

@zadjii-msft commented on GitHub (May 11, 2021): I don't disagree that this would be nice to have in `cmd.exe`, but like you've mentioned, `cmd.exe` is unfortunately _never_ going to get updated again. For additional reading: [link](https://github.com/microsoft/terminal/blob/main/doc/Niksa.md#cmd). You'll just have to keep using clink with `cmd`, or switch to a modern shell like `pwsh`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#13765