Make MC's special commands not show up in bash's history and also suppress consecutive identical commands.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Alexander Kriegisch 2013-09-02 18:23:09 +03:00 committed by Slava Zanko
parent 239f695d83
commit 039fd561d2

View File

@ -268,8 +268,9 @@ init_subshell_child (const char *pty_name)
init_file = g_strdup (".bashrc"); init_file = g_strdup (".bashrc");
} }
/* Make MC's special commands not show up in bash's history */ /* Make MC's special commands not show up in bash's history and also suppress
putenv ((char *) "HISTCONTROL=ignorespace"); * consecutive identical commands*/
putenv ((char *) "HISTCONTROL=ignoreboth");
/* Allow alternative readline settings for MC */ /* Allow alternative readline settings for MC */
{ {