libtmux Reference MCP Search
On this page

libtmux.Server.show_prompt_history

View as Markdown

Module
libtmux
Declared in
Server
Package
libtmux
Source
src/libtmux/server.py
show_prompt_history ( self , prompt_type : t.Literal["command", "search", "target", "window-target"] | None = None ) list[str]
method [source]
method [source]
show_prompt_history

Show prompt history via $ tmux show-prompt-history.

Examples

>>> from libtmux.common import has_gte_version
>>> if has_gte_version("3.3"):
...     result = server.show_prompt_history()
... else:
...     result = []
>>> isinstance(result, list)
True
Parameters
  • prompt_type ( t.Literal["command", "search", "target", "window-target"] | None ) – Prompt type to show (-T flag).

Returns

list[str] Prompt history lines.

0 declared, 0 inherited

Esc

Type to search.