Answer the question
In order to leave comments, you need to log in
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='*”
export HISTCONTROL="ignoreboth"
Answer the question
In order to leave comments, you need to log in
export HISTIGNORE=”&:ls:[bf]g:exit: cd \”\`*: PROMPT_COMMAND='*”
www.midnight-commander.org/wiki/doc/faq#a6.8Iseelo...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question