@@ -208,7 +208,7 @@ pub enum IsolatedPath {
208208 Boolean ( bool ) ,
209209
210210 /// string type of `use_isolated_path` indicating the environment variable name
211- Name ( String ) ,
211+ Named ( String ) ,
212212}
213213
214214impl FromStr for IsolatedPath {
@@ -226,7 +226,7 @@ impl FromStr for IsolatedPath {
226226 match s. as_str ( ) {
227227 "true" => Ok ( IsolatedPath :: Boolean ( true ) ) ,
228228 "false" => Ok ( IsolatedPath :: Boolean ( false ) ) ,
229- _ => Ok ( IsolatedPath :: Name ( s) ) ,
229+ _ => Ok ( IsolatedPath :: Named ( s) ) ,
230230 }
231231 }
232232}
@@ -265,18 +265,24 @@ impl Config {
265265 self . no_junction . unwrap_or_default ( )
266266 }
267267
268- /// Get the `proxy` setting .
268+ /// Get the `proxy` config .
269269 #[ inline]
270270 pub fn proxy ( & self ) -> Option < & str > {
271271 self . proxy . as_deref ( )
272272 }
273273
274- /// Get the `cat_style` setting .
274+ /// Get the `cat_style` config .
275275 #[ inline]
276276 pub fn cat_style ( & self ) -> & str {
277277 self . cat_style . as_deref ( ) . unwrap_or_default ( )
278278 }
279279
280+ /// Get the `use_isoloated_path` config.
281+ #[ inline]
282+ pub fn use_isolated_path ( & self ) -> Option < & IsolatedPath > {
283+ self . use_isolated_path . as_ref ( )
284+ }
285+
280286 /// Update config key with new value.
281287 pub ( crate ) fn set ( & mut self , key : & str , value : & str ) -> Fallible < ( ) > {
282288 let is_unset = value. is_empty ( ) ;
0 commit comments