def rule(event):
    if any(
        [
            any(
                [
                    all(
                        [
                            "Set-PSReadlineOption" in event.deep_get("ScriptBlockText", default=""),
                            "–HistorySaveStyle" in event.deep_get("ScriptBlockText", default=""),
                            "SaveNothing" in event.deep_get("ScriptBlockText", default=""),
                        ]
                    ),
                    all(
                        [
                            "Set-PSReadlineOption" in event.deep_get("ScriptBlockText", default=""),
                            "-HistorySaveStyle" in event.deep_get("ScriptBlockText", default=""),
                            "SaveNothing" in event.deep_get("ScriptBlockText", default=""),
                        ]
                    ),
                ]
            ),
            all(
                [
                    any(
                        [
                            "del" in event.deep_get("ScriptBlockText", default=""),
                            "Remove-Item" in event.deep_get("ScriptBlockText", default=""),
                            "rm" in event.deep_get("ScriptBlockText", default=""),
                        ]
                    ),
                    "(Get-PSReadlineOption).HistorySavePath"
                    in event.deep_get("ScriptBlockText", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
