mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 06:25:43 +02:00
plugin path for $nu (#398)
This commit is contained in:
@ -507,6 +507,17 @@ pub fn eval_variable(
|
||||
});
|
||||
}
|
||||
|
||||
#[cfg(feature = "plugin")]
|
||||
if let Some(path) = &engine_state.plugin_signatures {
|
||||
if let Some(path_str) = path.to_str() {
|
||||
output_cols.push("plugin-path".into());
|
||||
output_vals.push(Value::String {
|
||||
val: path_str.into(),
|
||||
span,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if let Ok(cwd) = std::env::var("PWD") {
|
||||
output_cols.push("pwd".into());
|
||||
output_vals.push(Value::String { val: cwd, span })
|
||||
|
Reference in New Issue
Block a user