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
.historyto 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 onis set and your configuration allows history. - For privacy, use
.history offor clear the history file manually.
Related
- See the
history.enabledandhistory.limitoptions in rsql.toml configuration. - For command recall, use arrow keys or search shortcuts in your terminal.