K
K
Kirill Kazakov2015-06-22 00:25:37
linux
Kirill Kazakov, 2015-06-22 00:25:37

How to remove mc command history?

Debian 7.8. shell /bin/bash
I use MC to work in the console, when minimizing mc , when searching for previous commands in the console, the history of transitions in MC is displayed. Is it possible to exclude the history of work in mc from the history of commands in the console?
UPD (thanks Ergil Osin ):
Add to ~/.bashrc

# don't put garbage from mc in the history
export HISTIGNORE=”&:ls:[bf]g:exit: cd \”\`*: PROMPT_COMMAND='*”

or that
export HISTCONTROL="ignoreboth"

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Ergil Osin, 2015-06-22
@mausspb

export HISTIGNORE=”&:ls:[bf]g:exit: cd \”\`*: PROMPT_COMMAND='*”
www.midnight-commander.org/wiki/doc/faq#a6.8Iseelo...

U
Uncle Seryozha, 2016-12-22
@Protos

Helped me this way:
history -c

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question