================
@@ -0,0 +1,100 @@
+import os
+import re
+import sys
+import subprocess
+
+import lldb
+
+
+@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
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to