def rule(event):
    if any(
        [
            "ConsoleHost_history.txt" in event.deep_get("CommandLine", default=""),
            "(Get-PSReadLineOption).HistorySavePath" in event.deep_get("CommandLine", default=""),
        ]
    ):
        return True
    return False
