mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:37:43 +00:00
Terminal: Put PAGER=more in the default environment
This should be done at some other level (shell rc script for example), this is just to make "git" stop complaining that I don't have "less".
This commit is contained in:
parent
4badef8137
commit
40860f6f2c
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ static void 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[32;1m\\w\\e[0m \\p ", "TERM=xterm", "PATH=/bin:/usr/bin:/usr/local/bin", nullptr };
|
||||
const char* envs[] = { "PROMPT=\\X\\u@\\h:\\w\\a\\e[33;1m\\h\\e[0m \\e[32;1m\\w\\e[0m \\p ", "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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue