diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-10 21:51:12 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-10 21:53:04 +0100 |
commit | 14f9a29502ae96c76e1a58fb00e075c6f15ce1f1 (patch) | |
tree | f871d0c9d154bf8a57ea47675d95b86d11eaadb9 /Applications/Terminal | |
parent | 8262c1e6620ca79db9ce43e08a17352f6501d30f (diff) | |
download | serenity-14f9a29502ae96c76e1a58fb00e075c6f15ce1f1.zip |
Terminal: Set up a nice $PROMPT for the shell :^)
Diffstat (limited to 'Applications/Terminal')
-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 9be1fe9f5d..071dbce8e5 100644 --- a/Applications/Terminal/main.cpp +++ b/Applications/Terminal/main.cpp @@ -114,7 +114,7 @@ static void run_command(int ptm_fd, String command) args[1] = "-c"; args[2] = command.characters(); } - const char* envs[] = { "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", "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"); |