diff options
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index 1f002efcb..795f9f38a 100644 --- a/src/config.rs +++ b/src/config.rs @@ -342,6 +342,10 @@ impl StarshipConfig { pub fn get_custom_modules(&self) -> Option<&toml::value::Table> { self.get_config(&["custom"])?.as_table() } + /// Get the table of all the registered env_var modules, if any + pub fn get_env_var_modules(&self) -> Option<&toml::value::Table> { + self.get_config(&["env_var"])?.as_table() + } pub fn get_root_config(&self) -> StarshipRootConfig { if let Some(root_config) = &self.config { |