diff --git a/crates/nu-engine/src/scope.rs b/crates/nu-engine/src/scope.rs index 62acd6a9a7..45f6f983fc 100644 --- a/crates/nu-engine/src/scope.rs +++ b/crates/nu-engine/src/scope.rs @@ -488,6 +488,7 @@ impl<'e, 's> ScopeData<'e, 's> { "description" => Value::string(module_desc, span), "extra_description" => Value::string(module_extra_desc, span), "module_id" => Value::int(module_id.get() as i64, span), + "file" => Value::string(module.file.clone().map_or("unknown".to_string(), |(p, _)| p.path().to_string_lossy().to_string()), span), }, span, )