Class HistoryCommands

java.lang.Object
org.jline.shell.impl.SimpleCommandGroup
org.jline.shell.impl.HistoryCommands
All Implemented Interfaces:
CommandGroup

public class HistoryCommands extends SimpleCommandGroup
Built-in history command group.

Provides the history command with the following usage:

  • history — list all history entries
  • history N — list last N entries
  • history -c or --clear — clear history
  • history -s or --save — save history to file
  • history /pattern — search history by regex
Since:
4.0