aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-03-09 13:46:18 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-03-09 13:46:18 +0530
commitf77d9bef3d63aeff50b47abc0a2f4c62c97234cb (patch)
treea89cc5c7146df75c93235d9aaae9aa9c86f5f530
parente13c04b40d6e5c9c36b94fbf457b395f7a06ecba (diff)
downloadnnn-f77d9bef3d63aeff50b47abc0a2f4c62c97234cb.tar.gz
Rename env var
-rw-r--r--README.md2
-rw-r--r--nnn.14
-rw-r--r--src/nnn.c6
3 files changed, 6 insertions, 6 deletions
diff --git a/README.md b/README.md
index 6a40666..eb34f1a 100644
--- a/README.md
+++ b/README.md
@@ -379,7 +379,7 @@ The following indicators are used in the detail view:
| `NNN_RESTRICT_NAV_OPEN=1` | open files on <kbd> ↵</kbd>, not <kbd>→</kbd> or <kbd>l</kbd> |
| `NNN_RESTRICT_0B=1` | do not open 0-byte files |
| `NNN_TRASH=1` | trash files to the desktop Trash [default: delete] |
-| `NNN_CP_MV_PROG=1` | show copy, move progress on Linux |
+| `NNN_OPS_PROG=1` | show copy, move progress on Linux |
#### Help
diff --git a/nnn.1 b/nnn.1
index c4c1684..d09cc3e 100644
--- a/nnn.1
+++ b/nnn.1
@@ -353,9 +353,9 @@ files.
export NNN_TRASH=1
.Ed
.Pp
-\fBNNN_CP_MV_PROG:\fR show progress of copy, move operations (Linux-only, needs advcpmv).
+\fBNNN_OPS_PROG:\fR show progress of copy, move operations (Linux-only, needs advcpmv).
.Bd -literal
- export NNN_CP_MV_PROG=1
+ export NNN_OPS_PROG=1
.Ed
.Sh KNOWN ISSUES
If you are using urxvt you might have to set backspace key to DEC.
diff --git a/src/nnn.c b/src/nnn.c
index 0f33df9..baab55b 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -447,7 +447,7 @@ static const char * const messages[] = {
#define NNN_RESTRICT_0B 13
#define NNN_TRASH 14
#ifdef __linux__
-#define NNN_CP_MV_PROG 15
+#define NNN_OPS_PROG 15
#endif
static const char * const env_cfg[] = {
@@ -467,7 +467,7 @@ static const char * const env_cfg[] = {
"NNN_RESTRICT_0B",
"NNN_TRASH",
#ifdef __linux__
- "NNN_CP_MV_PROG",
+ "NNN_OPS_PROG",
#endif
};
@@ -4102,7 +4102,7 @@ int main(int argc, char *argv[])
cfg.restrict0b = 1;
#ifdef __linux__
- if (!getenv(env_cfg[NNN_CP_MV_PROG])) {
+ if (!getenv(env_cfg[NNN_OPS_PROG])) {
cp[5] = cp[4];
cp[2] = cp[4] = ' ';