diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-29 18:47:25 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-29 18:48:39 +0100 |
commit | 40860f6f2c7b1fe52aa87fce0e24c78ceecd32ac (patch) | |
tree | 3d70abaa629bccc0cb2895b854294ca06f99ac02 /Applications/Terminal/main.cpp | |
parent | 4badef8137395bec128fdd58ebe471a873bac84f (diff) | |
download | serenity-40860f6f2c7b1fe52aa87fce0e24c78ceecd32ac.zip |
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".
Diffstat (limited to 'Applications/Terminal/main.cpp')
-rw-r--r-- | Applications/Terminal/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/Terminal/main.cpp b/Applications/Terminal/main.cpp index 8de9868780..6fa6ec987e 100644 --- a/Applications/Terminal/main.cpp +++ b/Applications/Terminal/main.cpp @@ -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"); |