aboutsummaryrefslogtreecommitdiff
path: root/smash/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'smash/main.c')
-rw-r--r--smash/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/smash/main.c b/smash/main.c
index efc7bd1..3c5b559 100644
--- a/smash/main.c
+++ b/smash/main.c
@@ -2,6 +2,7 @@
#include "comment.h"
#include "env.h"
#include "variable.h"
+#include "prompt.h"
#include "../lib/sys/io.h"
#include "../lib/cstr/cstr.h"
@@ -15,7 +16,6 @@
int main(int argc, char *argv[])
{
- char prompt[] = "$ ";
i64 line_length;
int fd = STDIN_FD;
char linebuf[BUFSIZ];
@@ -35,7 +35,7 @@ int main(int argc, char *argv[])
while (1) {
if (fd == STDIN_FD)
- wstd(prompt);
+ prompt();
line_length = get_next_line_from_fd(fd, linebuf);