2

On Windows 10, I want to clear the entire history of the cmder /conemu command and bash window commands. However, I cannot delete even if I use the following approaches:

  • Open .history file in %CMDER_ROOT%\config\.history and delete its content --> Not make any sense

  • Run some commands e.g. Alt+F7, history -c

I am getting crazy when I see several commands that I used for Docker 2-3 months ago. I think there must be a way to clear the entire history or some of the history e.g. deleting some lines of the .history file. How can I perform this?

2
  • Deleting C:\Program Files (x86)\cmder\config\.history did it for me. Cmder must be closed when deleting.
    – harrymc
    Commented Mar 2, 2021 at 20:52
  • I tried it and now I also tried again by closing cmder as you said. But does not make any sense and I see the entire history by using up and down arrow keys.
    – Jack
    Commented Mar 2, 2021 at 21:11

3 Answers 3

2

Some commands that should do it are:

  • Delete the C:\Program Files (x86)\cmder\config\.history file.
  • Enter the command cmd /k in the prompt (for some info on why it does this, see Why does cmd/k reset/clear command history).
  • Enter doskey /listsize=0 in the prompt.
7
  • None of them is working :(
    – Jack
    Commented Mar 2, 2021 at 21:49
  • @ClintEastwood Really? Dang it. They all work okay for me. Is there something else going on?
    – Ollie
    Commented Mar 2, 2021 at 21:50
  • Do you mean that you cannot retrieve any command by using up/down keys after restarting cmder?
    – Jack
    Commented Mar 2, 2021 at 21:52
  • @ClintEastwood Yes.
    – Ollie
    Commented Mar 2, 2021 at 21:52
  • I know it is weird, but I tried all of these methods and restarted the PC. Then try, but unfortunately again see the same list of commands.
    – Jack
    Commented Mar 3, 2021 at 9:48
0

You can delete a specific entry or the entire file (clink_history), now at ...\Cmder\config.

I installed Cmder using Chocolatey.org so I have it at C:\tools\Cmder\config\

0

For ConEmu with clink you may find the history files in C:\Users\USERNAME\AppData\Local\clink or %LOCALAPPDATA%\clink

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .