it2 prompt search

Search through command history

Synopsis

it2 prompt search <session-id> <pattern> [flags]

Description

Search through command history by filtering prompts based on command text. Requires Shell Integration to be enabled in iTerm2.

Options

--regex

Use regex pattern matching

Options inherited from parent commands

--format (default "text")

Output format (text, json, yaml) - affects how command results are displayed

--timeout

Timeout for API operations - how long to wait for iTerm2 to respond

--url

WebSocket URL for iTerm2 API - typically ws://localhost:1912 for local iTerm2

See Also