Cmder: Clearing history?

Created on 9 Jul 2016  路  1Comment  路  Source: cmderdev/cmder

Referring to the up-arrow/Ctrl+R history.

Is there any way to do so?

Question

Most helpful comment

History is stored in a file, so one option is to truncate that file. For example:

echo. > %CMDER_ROOT%\config\.history

You could put that in a .bat file or something. (I don't believe you can do it in an alias as I don't think redirect operators are supported in doskey macros.)

>All comments

History is stored in a file, so one option is to truncate that file. For example:

echo. > %CMDER_ROOT%\config\.history

You could put that in a .bat file or something. (I don't believe you can do it in an alias as I don't think redirect operators are supported in doskey macros.)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jenisys picture jenisys  路  3Comments

edgariscoding picture edgariscoding  路  3Comments

isnullxbh picture isnullxbh  路  3Comments

jordanrobinson picture jordanrobinson  路  3Comments

giuliannosbrugnera picture giuliannosbrugnera  路  3Comments