def config(config_dict: typing.Mapping) -> Config:
    """Configures the konch shell. This function should be called in a
    .konchrc file.

    :param dict config_dict: Dict that may contain 'context', 'banner', and/or
        'shell' (default shell class to use).
    """
    logger.debug(f"Updating with {config_dict}")
    _cfg.update(config_dict)
    return _cfg