From a537464a915aea2e38c62df041996b8525367bde Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 16 Jan 2022 22:50:22 -0500 Subject: move default environment variable setting to shell initialization --- src/shell/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/shell/mod.rs') diff --git a/src/shell/mod.rs b/src/shell/mod.rs index 0547bae..8343b0e 100644 --- a/src/shell/mod.rs +++ b/src/shell/mod.rs @@ -212,10 +212,13 @@ pub struct Shell { impl Shell { pub fn new(offset: time::UtcOffset) -> anyhow::Result { + let mut env = Env::new()?; + env.set_var("SHELL", std::env::current_exe()?); + env.set_var("TERM", "screen"); Ok(Self { readline: readline::Readline::new(), history: history::History::new(), - env: Env::new()?, + env, git: None, focus: Focus::Readline, scene: Scene::Readline, -- cgit v1.2.3-54-g00ecf