Terminal: Add /usr/local/bin to the default PATH.

Now that we're building all these ports, let's have them in the PATH. :^)
This commit is contained in:
Andreas Kling 2019-05-29 06:34:54 +02:00
parent 6785250f8c
commit 1361721053
Notes: sideshowbarker 2024-07-19 13:51:16 +09:00

View file

@ -68,7 +68,7 @@ static void make_shell(int ptm_fd)
exit(1);
}
char* args[] = { "/bin/Shell", nullptr };
char* envs[] = { "TERM=xterm", "PATH=/bin:/usr/bin", nullptr };
char* envs[] = { "TERM=xterm", "PATH=/bin:/usr/bin:/usr/local/bin", nullptr };
rc = execve("/bin/Shell", args, envs);
if (rc < 0) {
perror("execve");