From 1b8967ea87c63342f03c340d44a084ea7f62cae9 Mon Sep 17 00:00:00 2001 From: iceyrazor Date: Sat, 28 Feb 2026 23:49:02 -0600 Subject: command typing now can chain commands with just ; --- src/main.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/main.h (limited to 'src/main.h') diff --git a/src/main.h b/src/main.h new file mode 100644 index 0000000..2b8505b --- /dev/null +++ b/src/main.h @@ -0,0 +1,23 @@ +#ifndef mainh +#define mainh + +typedef struct{ + char *prompt; + char *pre_prompt; +} SHELL_OB; + +typedef enum{ + Stdout=0, + Redirect=1, + Pipe=2, + If=3, + Continue=4 +} cmd_t; + +typedef struct{ + char *cmd; + cmd_t type; + char *Stdout; +} CMD; + +#endif -- cgit v1.3