mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
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:
parent
469dc1352b
commit
4e74d7d255
@ -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)\\$\\ ; "
|
||||
|
Loading…
Reference in New Issue
Block a user