[Lldb-commits] [lldb] [lldb] Add fzf_history command to examples (PR #128571)

Chelsea Cassanova via lldb-commits lldb-commits at lists.llvm.org
Mon Feb 24 13:47:18 PST 2025


================
@@ -0,0 +1,100 @@
+import os
+import re
+import sys
+import subprocess
+
+import lldb
+
+
+ at lldb.command()
+def fzf_history(debugger, cmdstr, ctx, result, _):
+    """Use fzf to search and select from lldb command history."""
+    if sys.platform != "darwin":
+        result.SetError("fzf_history supports macOS only")
----------------
chelcassanova wrote:

I know that fzf_history here is using `pbcopy/pbpaste` and `applescript` here for the clipboard operations but is it possible to just say that "clipboard operations are only supported on macOS" and still run the script?

https://github.com/llvm/llvm-project/pull/128571


More information about the lldb-commits mailing list