Ticket #3944: fish_prompt.diff

File fish_prompt.diff, 759 bytes (added by pronobis, 14 months ago)
  • src/subshell/common.c

    diff --git a/src/subshell/common.c b/src/subshell/common.c
    index eca94311e..54f8c205b 100644
    a b init_subshell_precmd (char *precmd, size_t buff_size) 
    882882         */ 
    883883        g_snprintf (precmd, buff_size, 
    884884                    " if not functions -q fish_prompt_mc;" 
     885                    "functions -e fish_right_prompt;" 
    885886                    "functions -c fish_prompt fish_prompt_mc; end;" 
    886887                    "function fish_prompt;" 
    887                     "echo (whoami)@(hostname -s):(set_color $fish_color_cwd)(pwd)(set_color normal)\\$\\ ; " 
    888888                    "echo \"$PWD\">&%d; fish_prompt_mc; kill -STOP %%self; end\n", 
    889889                    subshell_pipe[WRITE]); 
    890890        break;