history - list, search, or delete command history entries.
history [n] history list [n] history search text ... history delete --id n ... history clear
history is a Rush-specific regular builtin for managing interactive command history. It is not available in POSIX mode; use fc for portable history access.
Every listed or matched entry is printed with its history id followed by a tab and the command text. Ids are stable identifiers, so an id printed by history search can be passed to history delete --id.
history [n], history list [n]history search text ...history delete --id n ...--id n and --id=n are both accepted and may be repeated. Ids that do not name an entry are reported on standard error and the remaining ids are still processed.history clearRush stores history in $XDG_STATE_HOME/rush/history.sqlite, falling back to $HOME/.local/state/rush/history.sqlite.
history invocations are not recorded in history. Searches would otherwise match their own command line, and history clear would leave itself behind as the sole entry.
Deleting an entry removes it from arrow-key navigation, reverse search, autosuggestions, and z frecency ranking alike, because all of them read the same history store.
Commands submitted with a leading space are never recorded, so secrets can be kept out of history without needing deletion afterward.
history returns zero on success. It returns 1 when history is not active, an operation is unavailable, or an id does not name an entry, and 2 on usage errors.