diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-10-11 20:26:23 +0300 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-10-11 20:27:22 +0300 |
commit | fe2b66ed1547663aa353bfb05763305fbcdea88b (patch) | |
tree | 1e08d94b758d2d0c87d64f2be15eed198095e96c /src/prompt.rs | |
parent | Properly read username and hostname (diff) | |
download | rshell-fe2b66ed1547663aa353bfb05763305fbcdea88b.tar.xz |
Add dummy SIGINT handler
Diffstat (limited to 'src/prompt.rs')
-rw-r--r-- | src/prompt.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/prompt.rs b/src/prompt.rs index 40c96cc..acb11e4 100644 --- a/src/prompt.rs +++ b/src/prompt.rs @@ -14,7 +14,7 @@ impl Prompt { let hostname = user::hostname()?; let ready = if username == "root" { "#" } else { "$" }.to_owned(); - let ps1 = match std::env::var("PS1") { + let ps1 = match std::env::var("PRMOPT") { Ok(val) => val, Err(_) => String::from(" {USER}@{HOST} [{PWD}]\n{$} "), } |