1
1

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>
Этот коммит содержится в:
Fabian Homborg 2016-11-11 15:25:52 +01:00 коммит произвёл Andrew Borodin
родитель 469dc1352b
Коммит 4e74d7d255

Просмотреть файл

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