summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index 52e1691..35c2bff 100644
--- a/main.c
+++ b/main.c
@@ -1,6 +1,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <readline/readline.h>
+#include <readline/history.h>
#include <string.h>
#include "exec.h"
@@ -13,6 +14,7 @@ int main() {
line = readline("$ ");
if (line[0] == '\0') continue;
if (strcmp(line, "exit") == 0) exit(0);
+ add_history(line);
process_input_line(line, &shstate);
}
free(line);