From 34938a8148dfca66c4d74b1bab1c70f6ba855fb8 Mon Sep 17 00:00:00 2001 From: czjstmax Date: Thu, 19 Mar 2026 17:52:09 +0100 Subject: updated readme Signed-off-by: czjstmax --- README.md | 6 ++++++ nm.c | 2 ++ 2 files changed, 8 insertions(+) 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 ``. + +- 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]; -- cgit v1.3.1