mirror of
https://github.com/nushell/nushell
synced 2024-12-27 05:23:11 +00:00
Include config path in env command
This commit is contained in:
parent
484d8c26ac
commit
112e5d096f
1 changed files with 4 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
use crate::data::config;
|
||||||
use crate::data::{Dictionary, Value};
|
use crate::data::{Dictionary, Value};
|
||||||
use crate::errors::ShellError;
|
use crate::errors::ShellError;
|
||||||
use crate::prelude::*;
|
use crate::prelude::*;
|
||||||
|
@ -41,6 +42,9 @@ pub fn get_environment(tag: Tag) -> Result<Tagged<Value>, Box<dyn std::error::Er
|
||||||
indexmap.insert("home".to_string(), Value::path(home).tagged(tag));
|
indexmap.insert("home".to_string(), Value::path(home).tagged(tag));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let config = config::default_path()?;
|
||||||
|
indexmap.insert("config".to_string(), Value::path(config).tagged(tag));
|
||||||
|
|
||||||
let temp = std::env::temp_dir();
|
let temp = std::env::temp_dir();
|
||||||
indexmap.insert("temp".to_string(), Value::path(temp).tagged(tag));
|
indexmap.insert("temp".to_string(), Value::path(temp).tagged(tag));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue