Merge pull request #305 from a-kenji/set-env
Add ZELLIJ Environment Varable on startup(#304)
This commit is contained in:
commit
5216766a98
1 changed files with 3 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ use std::thread;
|
||||||
use std::{collections::HashMap, fs};
|
use std::{collections::HashMap, fs};
|
||||||
use std::{
|
use std::{
|
||||||
collections::HashSet,
|
collections::HashSet,
|
||||||
|
env,
|
||||||
io::Write,
|
io::Write,
|
||||||
str::FromStr,
|
str::FromStr,
|
||||||
sync::{Arc, Mutex},
|
sync::{Arc, Mutex},
|
||||||
|
|
@ -128,6 +129,8 @@ pub fn start(mut os_input: Box<dyn OsApi>, opts: CliArgs) {
|
||||||
.write(take_snapshot.as_bytes())
|
.write(take_snapshot.as_bytes())
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
|
env::set_var(&"ZELLIJ", "0");
|
||||||
|
|
||||||
let config = Config::from_cli_config(opts.config, opts.option)
|
let config = Config::from_cli_config(opts.config, opts.option)
|
||||||
.map_err(|e| {
|
.map_err(|e| {
|
||||||
eprintln!("There was an error in the config file:\n{}", e);
|
eprintln!("There was an error in the config file:\n{}", e);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue