Command History

MSGMX remembers previous commands entered and you can use this capability to recall previous commands and re-run them as-is or edit them before execution.

You can access your command history in the following ways:

  • Navigate through the history using up / down arrow keys.
  • Type ' / ' to search through the history. Characters typed after the '/' are used as search patterns, and you see a drop-down menu of matching terms. The search is done in an unanchored manner, so any commands in your history containing the search string will be displayed.
  • Display all retained history commands (e.g., msgmx show history )
  • Use regular expressions to narrow down suggestions from the history dropdown.

You can control your history-related settings with the following commands:

  • Set the number of saved commands (e.g., msgmx set history-depth 200 )
  • Export stored history commands (e.g., msgmx history export <FilePath> )
  • Clear the history contents. (e.g., msgmx history flush )