Exclude space prefixed commands from Bash history. This include Midnight Commander UI prompt (not shell).
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sat, 18 Sep 2021 23:31:05 +0300
changeset 993 43ccab60bb32
parent 992 d9cb7673d29c
child 994 247f27cfcf68
Exclude space prefixed commands from Bash history. This include Midnight Commander UI prompt (not shell).
.bashrc
--- a/.bashrc	Wed Sep 15 15:22:14 2021 +0300
+++ b/.bashrc	Sat Sep 18 23:31:05 2021 +0300
@@ -62,7 +62,7 @@
 # Don't store noisy/dumb items.
 # TIP: MC command start with space.
 HISTIGNORE=\
-" cd *":\
+" *":\
 "vlc *":ls:pwd
 
 # To these options assigned default value, as they satisfy my needs I comment them.