Skip to content

Commit

Permalink
Merge pull request #305 from a-kenji/set-env
Browse files Browse the repository at this point in the history
Add ZELLIJ Environment Varable on startup(#304)
  • Loading branch information
a-kenji authored Apr 21, 2021
2 parents 4863fb7 + 8823bef commit 5216766
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ use std::thread;
use std::{collections::HashMap, fs};
use std::{
collections::HashSet,
env,
io::Write,
str::FromStr,
sync::{Arc, Mutex},
Expand Down Expand Up @@ -128,6 +129,8 @@ pub fn start(mut os_input: Box<dyn OsApi>, opts: CliArgs) {
.write(take_snapshot.as_bytes())
.unwrap();

env::set_var(&"ZELLIJ", "0");

let config = Config::from_cli_config(opts.config, opts.option)
.map_err(|e| {
eprintln!("There was an error in the config file:\n{}", e);
Expand Down

0 comments on commit 5216766

Please sign in to comment.