aboutsummaryrefslogtreecommitdiff
path: root/src/repl.c
diff options
context:
space:
mode:
authorDominik Kaiser2024-06-25 15:06:46 +0200
committerGitHub2024-06-25 15:06:46 +0200
commit031685832d8267acc2fa46ea9732b8e95eb34463 (patch)
treed2c0ec50c1be91e17b3924a2abc058575893c89e /src/repl.c
parent97cca528658e5b811a56600b7c0b4f9c11bf83fc (diff)
downloadminishell-031685832d8267acc2fa46ea9732b8e95eb34463.tar.gz
minishell-031685832d8267acc2fa46ea9732b8e95eb34463.zip
Add history
Diffstat (limited to 'src/repl.c')
-rw-r--r--src/repl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/repl.c b/src/repl.c
index f97af6c..85d227f 100644
--- a/src/repl.c
+++ b/src/repl.c
@@ -6,7 +6,7 @@
/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/24 16:07:04 by dkaiser #+# #+# */
-/* Updated: 2024/06/25 13:50:19 by dkaiser ### ########.fr */
+/* Updated: 2024/06/25 15:03:00 by dkaiser ### ########.fr */
/* */
/* ************************************************************************** */
@@ -21,6 +21,7 @@ void repl(const char *prompt)
input = readline(prompt);
if (input == NULL)
return ;
+ add_history(input);
free(input);
}
}