mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
Ticket 3944: support user-defined prompt in the fish subshell.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
5bb73ee1c8
commit
c5aaeda39c
@ -904,9 +904,9 @@ init_subshell_precmd (char *precmd, size_t buff_size)
|
||||
*/
|
||||
g_snprintf (precmd, buff_size,
|
||||
" if not functions -q fish_prompt_mc;"
|
||||
"functions -e fish_right_prompt;"
|
||||
"functions -c fish_prompt fish_prompt_mc; end;"
|
||||
"function fish_prompt;"
|
||||
"echo (whoami)@(hostname -s):(set_color $fish_color_cwd)(pwd)(set_color normal)\\$\\ ; "
|
||||
"echo \"$PWD\">&%d; fish_prompt_mc; kill -STOP %%self; end\n",
|
||||
subshell_pipe[WRITE]);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user