From c5aaeda39c2ffe5cf99bcb859b154edf1fa4b033 Mon Sep 17 00:00:00 2001 From: Andrzej Pronobis Date: Sun, 21 Oct 2018 19:51:20 +0300 Subject: [PATCH] Ticket 3944: support user-defined prompt in the fish subshell. Signed-off-by: Andrew Borodin --- src/subshell/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/subshell/common.c b/src/subshell/common.c index d48f9a083..6a90c3e8a 100644 --- a/src/subshell/common.c +++ b/src/subshell/common.c @@ -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;