Fish shell integration: ignore mc's prompt in history.

Fish does something equivalent to bash's "HISTCONTROL=ignoreboth" by default,
so simply prefixing a command with a space will let it be ignored.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Fabian Homborg 2016-11-11 15:25:52 +01:00 committed by Andrew Borodin
parent 469dc1352b
commit 4e74d7d255

View File

@ -881,7 +881,7 @@ init_subshell_precmd (char *precmd, size_t buff_size)
* Find out how to fix this.
*/
g_snprintf (precmd, buff_size,
"if not functions -q fish_prompt_mc;"
" if not functions -q fish_prompt_mc;"
"functions -c fish_prompt fish_prompt_mc; end;"
"function fish_prompt;"
"echo (whoami)@(hostname -s):(set_color $fish_color_cwd)(pwd)(set_color normal)\\$\\ ; "