summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md6
-rw-r--r--nm.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/README.md b/README.md
index 6ee2c73..83fcedf 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,9 @@
# noshmore - noshell more
an extended version of the [nosh minimal POSIX C shell](https://github.com/jstmaxlol/nosh), still for \*NIX dudes!
+### differences
+- uses [GNU Readline] which is an external dependancy \
+ but it allows for great arrow-keys handling, history and \
+ MORE without having to touch `<termios.h>`.
+
+- it also fixes some minor memory leaks and stuff from nosh.
diff --git a/nm.c b/nm.c
index 47a8215..75949b1 100644
--- a/nm.c
+++ b/nm.c
@@ -27,6 +27,8 @@ int main(void)
{
signal(SIGINT, handlecc);
char *USER = getenv("USER");
+ if (!USER)
+ USER = "god";
while (true) {
char prompt[strlen(USER) + strlen("$ ") + 1];