mirror of
https://github.com/pikami/st.git
synced 2025-04-24 10:23:09 +01:00
use SHELL as default shell.
This commit is contained in:
parent
7823aeb1f9
commit
6c0a1eff2f
2
st.c
2
st.c
@ -709,7 +709,7 @@ execsh(void) {
|
||||
char **args;
|
||||
char *envshell = getenv("SHELL");
|
||||
|
||||
DEFAULT(envshell, "sh");
|
||||
DEFAULT(envshell, SHELL);
|
||||
putenv("TERM="TNAME);
|
||||
args = opt_cmd ? opt_cmd : (char*[]){envshell, "-i", NULL};
|
||||
execvp(args[0], args);
|
||||
|
Loading…
x
Reference in New Issue
Block a user