# cmd_show_prompt_history_exec

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-prompt-history.c#L53
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-cmd-show-prompt-history-c-cmd_show_prompt_history_exec/

tmux command: [`clear-prompt-history`](/en/tmux/3.7c/manual/clear-prompt-history/)

tmux command: [`show-prompt-history`](/en/tmux/3.7c/manual/show-prompt-history/)

```c
static enum cmd_retval cmd_show_prompt_history_exec(struct cmd *, struct cmdq_item *)
```

## Parameters

- `self` (`struct cmd *`)
- `item` (`struct cmdq_item *`)

## Calls

- [`args_get`](/en/tmux/3.7c/reference/c-function-args_get/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-prompt-history.c#L56)
- [`cmd_get_args`](/en/tmux/3.7c/reference/c-function-cmd_get_args/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-prompt-history.c#L55)
- [`cmd_get_entry`](/en/tmux/3.7c/reference/c-function-cmd_get_entry/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-prompt-history.c#L60)
- [`cmdq_error`](/en/tmux/3.7c/reference/c-function-cmdq_error/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-prompt-history.c#L73)
- [`cmdq_print`](/en/tmux/3.7c/reference/c-function-cmdq_print/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-prompt-history.c#L88)
- [`status_prompt_type`](/en/tmux/3.7c/reference/c-function-status_prompt_type/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-show-prompt-history.c#L71)

## Other function references

- [`status_prompt_type_string`](/en/tmux/3.7c/reference/c-function-status_prompt_type_string/) (function)

## Referenced by

- [`cmd_clear_prompt_history_entry`](/en/tmux/3.7c/reference/c-variable-cmd_clear_prompt_history_entry/) (attribute)
- [`cmd_show_prompt_history_entry`](/en/tmux/3.7c/reference/c-variable-cmd_show_prompt_history_entry/) (attribute)

## Referenced declarations

- [`cmd`](/en/tmux/3.7c/reference/c-struct-cmd/) (struct)
- [`cmd_clear_prompt_history_entry`](/en/tmux/3.7c/reference/c-variable-cmd_clear_prompt_history_entry/) (attribute)
- [`CMD_RETURN_ERROR`](/en/tmux/3.7c/reference/c-enum-cmd_retval-cmd_return_error/) (constant)
- [`CMD_RETURN_NORMAL`](/en/tmux/3.7c/reference/c-enum-cmd_retval-cmd_return_normal/) (constant)
- [`cmd_retval`](/en/tmux/3.7c/reference/c-enum-cmd_retval/) (enum)
- [`cmdq_item`](/en/tmux/3.7c/reference/c-struct-cmdq_item/) (struct)
- [`PROMPT_NTYPES`](/en/tmux/3.7c/reference/c-define-tmux-h-prompt_ntypes/) (constant)
- [`PROMPT_TYPE_INVALID`](/en/tmux/3.7c/reference/c-enum-prompt_type-prompt_type_invalid/) (constant)
- [`status_prompt_hlist`](/en/tmux/3.7c/reference/c-variable-status_prompt_hlist/) (attribute)
- [`status_prompt_hsize`](/en/tmux/3.7c/reference/c-variable-status_prompt_hsize/) (attribute)
