mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +03:00
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:
parent
239f695d83
commit
039fd561d2
@ -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 */
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user