aboutsummaryrefslogtreecommitdiff
path: root/src/prompt.rs
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2020-10-11 20:26:23 +0300
committerAqua-sama <aqua@iserlohn-fortress.net>2020-10-11 20:27:22 +0300
commitfe2b66ed1547663aa353bfb05763305fbcdea88b (patch)
tree1e08d94b758d2d0c87d64f2be15eed198095e96c /src/prompt.rs
parentProperly read username and hostname (diff)
downloadrshell-fe2b66ed1547663aa353bfb05763305fbcdea88b.tar.xz
Add dummy SIGINT handler
Diffstat (limited to 'src/prompt.rs')
-rw-r--r--src/prompt.rs2
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{$} "),
}