aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-04-01 03:24:55 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-04-01 03:43:16 +0530
commit12ffff243c8796ef1702047c733411ce7fe4e8e9 (patch)
tree3b97640c694b14565603aee07d7afb7d51771e4f
parent1ea41f2dd000db96ac26c4543e1becb1dbb03356 (diff)
downloadnnn-12ffff243c8796ef1702047c733411ce7fe4e8e9.tar.gz
Show more useful info in help
-rw-r--r--nnn.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/nnn.c b/nnn.c
index a2c9d0f..f057885 100644
--- a/nnn.c
+++ b/nnn.c
@@ -2021,8 +2021,25 @@ show_help(char *path)
if (copier)
dprintf(fd, "NNN_COPIER: %s\n", copier);
+ if (getenv("NNN_NO_X"))
+ dprintf(fd, "NNN_NO_X: %s\n", getenv("NNN_NO_X"));
+
+ if (getenv("NNN_SCRIPT"))
+ dprintf(fd, "NNN_SCRIPT: %s\n", getenv("NNN_SCRIPT"));
+
dprintf(fd, "\nVolume: %s of ", coolsize(get_fs_free(path)));
- dprintf(fd, "%s free\n", coolsize(get_fs_capacity(path)));
+ dprintf(fd, "%s free\n\n", coolsize(get_fs_capacity(path)));
+
+ if (getenv("PWD"))
+ dprintf(fd, "PWD: %s\n", getenv("PWD"));
+ if (getenv("SHELL"))
+ dprintf(fd, "SHELL: %s\n", getenv("SHELL"));
+ if (getenv("SHLVL"))
+ dprintf(fd, "SHLVL: %s\n", getenv("SHLVL"));
+ if (getenv("EDITOR"))
+ dprintf(fd, "EDITOR: %s\n", getenv("EDITOR"));
+ if (getenv("PAGER"))
+ dprintf(fd, "PAGER: %s\n", getenv("PAGER"));
dprintf(fd, "\nVersion: %s\n%s\n", VERSION, GENERAL_INFO);
close(fd);