history show is now 1 based

This commit is contained in:
2025-02-23 23:14:47 -05:00
parent 3640f022f6
commit 20d7bd09a3

View File

@ -7,7 +7,7 @@ import history from "../../history";
const history_command = new SubCommand("Show and manipulate command history") const history_command = new SubCommand("Show and manipulate command history")
history_command.add("show", "Show the history", function(term: Term, _args: Args) { history_command.add("show", "Show the history", function(term: Term, _args: Args) {
history.file.inner.forEach((entry, ind) => term.appendChild(stdout(`${ind} ${entry}`))) history.file.inner.forEach((entry, ind) => term.appendChild(stdout(`${ind+1} ${entry}`)))
}) })
history_command.add("clear", "Delete the entire command history", function(term: Term, _args: Args) { history_command.add("clear", "Delete the entire command history", function(term: Term, _args: Args) {