def is_base_env(prefix):
    """Detect if active conda env is `base`.

    Args:
        prefix (pathlib.Path): conda env prefix path

    Returns:
        type: bool
    """

    return "envs" not in prefix.parts and "conda" in prefix.stem