diff --git a/src/subshell.c b/src/subshell.c
index 3d908be..05d6be9 100644
a
|
b
|
init_subshell (void) |
759 | 759 | { |
760 | 760 | /* This must be remembered across calls to init_subshell() */ |
761 | 761 | static char pty_name[BUF_SMALL]; |
762 | | char precmd[BUF_SMALL]; |
| 762 | char precmd[BUF_MEDIUM]; |
763 | 763 | |
764 | 764 | switch (check_sid ()) |
765 | 765 | { |
… |
… |
init_subshell (void) |
889 | 889 | "alias precmd 'echo $cwd:q >>%s;kill -STOP $$'\n", tcsh_fifo); |
890 | 890 | break; |
891 | 891 | case FISH: |
| 892 | /* |
| 893 | * Use fish_prompt_mc function for prompt, if not present then copy |
| 894 | * fish_prompt to it. |
| 895 | */ |
892 | 896 | g_snprintf (precmd, sizeof (precmd), |
893 | | "function fish_prompt ; pwd>&%d;kill -STOP %%self; end\n", |
| 897 | "if not functions -q fish_prompt_mc;" |
| 898 | "functions -c fish_prompt fish_prompt_mc; end;" |
| 899 | "function fish_prompt; pwd>&%d; fish_prompt_mc; kill -STOP %%self; end\n", |
894 | 900 | subshell_pipe[WRITE]); |
895 | 901 | break; |
896 | 902 | |