mirror of
https://github.com/zellij-org/zellij.git
synced 2024-11-27 14:34:32 +03:00
Merge pull request #305 from a-kenji/set-env
Add ZELLIJ Environment Varable on startup(#304)
This commit is contained in:
commit
5216766a98
@ -16,6 +16,7 @@ use std::thread;
|
||||
use std::{collections::HashMap, fs};
|
||||
use std::{
|
||||
collections::HashSet,
|
||||
env,
|
||||
io::Write,
|
||||
str::FromStr,
|
||||
sync::{Arc, Mutex},
|
||||
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user