1 | --- src/subshell/common.c.orig 2016-05-07 15:42:52 UTC |
---|
2 | +++ src/subshell/common.c |
---|
3 | @@ -320,7 +320,8 @@ init_subshell_child (const char *pty_nam |
---|
4 | |
---|
5 | break; |
---|
6 | |
---|
7 | - /* TODO: Find a way to pass initfile to TCSH, ZSH and FISH */ |
---|
8 | + /* TODO: Find a way to pass initfile to SH, TCSH, ZSH and FISH */ |
---|
9 | + case SHELL_SH: |
---|
10 | case SHELL_TCSH: |
---|
11 | case SHELL_ZSH: |
---|
12 | case SHELL_FISH: |
---|
13 | @@ -369,6 +370,7 @@ init_subshell_child (const char *pty_nam |
---|
14 | case SHELL_DASH: |
---|
15 | case SHELL_TCSH: |
---|
16 | case SHELL_FISH: |
---|
17 | + case SHELL_SH: |
---|
18 | execl (mc_global.shell->path, mc_global.shell->path, (char *) NULL); |
---|
19 | break; |
---|
20 | |
---|
21 | @@ -889,6 +891,11 @@ init_subshell_precmd (char *precmd, size |
---|
22 | subshell_pipe[WRITE]); |
---|
23 | break; |
---|
24 | |
---|
25 | + case SHELL_SH: |
---|
26 | + g_snprintf (precmd, buff_size, |
---|
27 | + "PS1='$USER@\\h:\\w\\$ '\n", subshell_pipe[WRITE]); |
---|
28 | + break; |
---|
29 | + |
---|
30 | default: |
---|
31 | break; |
---|
32 | } |
---|