Terminal: Stop pushing a PROMPT into the shell's environment

This isn't the terminal's responsibility.
This commit is contained in:
Andreas Kling 2021-03-03 20:36:31 +01:00
parent d96a44a738
commit bcca3d4cdd
Notes: sideshowbarker 2024-07-18 21:45:01 +09:00

View File

@ -165,7 +165,7 @@ static pid_t run_command(int ptm_fd, String command)
args[1] = "-c";
args[2] = command.characters();
}
const char* envs[] = { "PROMPT=\\X\\u@\\h:\\w\\a\\e[33;1m\\h\\e[0m \\e[34;1m\\w\\e[0m \\p ", "TERM=xterm", "PAGER=more", "PATH=/bin:/usr/bin:/usr/local/bin", nullptr };
const char* envs[] = { "TERM=xterm", "PAGER=more", "PATH=/bin:/usr/bin:/usr/local/bin", nullptr };
rc = execve(shell.characters(), const_cast<char**>(args), const_cast<char**>(envs));
if (rc < 0) {
perror("execve");