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>
Этот коммит содержится в:
родитель
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)\\$\\ ; "
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user