history
The .history
command manages and displays the command history in rsql. This feature helps you recall, repeat, or edit
previous commands, improving productivity in interactive sessions. You can also enable or disable history tracking as
needed.
Usage
.history <on|off>
When to use
- Use
.history
to review or search previous commands. - Enable history (
on
) to keep a record of your session for future reference. - Disable history (
off
) for privacy or when working with sensitive data.
Examples
Show the current history setting and display the history:
.history
Enable history tracking:
.history on
Disable history tracking:
.history off
Troubleshooting
- If commands are not being saved, ensure
.history on
is set and your configuration allows history. - For privacy, use
.history off
or clear the history file manually.
Related
- See the
history.enabled
andhistory.limit
options in rsql.toml configuration. - For command recall, use arrow keys or search shortcuts in your terminal.