From 20d7bd09a363a6accd6db22cfcb08f2e90020624 Mon Sep 17 00:00:00 2001 From: rhpidfyre Date: Sun, 23 Feb 2025 23:14:47 -0500 Subject: [PATCH] history show is now 1 based --- src/rt/shell/command/builtin/history.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rt/shell/command/builtin/history.ts b/src/rt/shell/command/builtin/history.ts index fd437f5..42b0fc7 100644 --- a/src/rt/shell/command/builtin/history.ts +++ b/src/rt/shell/command/builtin/history.ts @@ -7,7 +7,7 @@ import history from "../../history"; const history_command = new SubCommand("Show and manipulate command history") 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) {