pub fn shell_config(
custom: Option<&str>,
exists: &dyn Fn(&Path) -> bool,
which: &dyn Fn(&str) -> Option<String>,
) -> Result<ShellConfig, String>Expand description
getShellConfig(customShellPath); exists checks a path, which finds an executable on PATH.