]> Sergey Matveev's repositories - nnn.git/commitdiff
Rename cp mv progress conf
authorArun Prakash Jana <engineerarun@gmail.com>
Wed, 14 Aug 2019 13:40:41 +0000 (19:10 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Wed, 14 Aug 2019 13:40:41 +0000 (19:10 +0530)
README.md
nnn.1
src/nnn.c

index f069ff3801dfd29b5d32bccb987c1acff694553a..23b8b44d3542129ca687607dd183f7a58f038b29 100644 (file)
--- a/README.md
+++ b/README.md
@@ -228,7 +228,7 @@ Option completion scripts for Bash, Fish and Zsh can be found in respective subd
 | `NNN_NO_AUTOSELECT=1` | do not auto-select matching dir in _nav-as-you-type_ mode |
 | `NNN_RESTRICT_NAV_OPEN=1` | open files on <kbd> ↵</kbd>, not <kbd>→</kbd> or <kbd>l</kbd> |
 | `NNN_TRASH=1` | trash files to the desktop Trash [default: delete] |
-| `NNN_OPS_PROG=1` | show copy, move progress on Linux |
+| `NNN_CP_MV_PROG=1` | show copy, move progress on Linux |
 
 #### Cmdline options
 
diff --git a/nnn.1 b/nnn.1
index 85f62a766836a4f68238047ad8f8ace2cc7bb535..05f754fe042dab19e104baf13217fcb9ce5810d1 100644 (file)
--- a/nnn.1
+++ b/nnn.1
@@ -198,9 +198,9 @@ files.
     export NNN_TRASH=1
 .Ed
 .Pp
-\fBNNN_OPS_PROG:\fR show progress of copy, move operations (Linux-only, needs advcpmv).
+\fBNNN_CP_MV_PROG:\fR show progress of copy, move operations (Linux-only, needs advcpmv).
 .Bd -literal
-    export NNN_OPS_PROG=1
+    export NNN_CP_MV_PROG=1
 .Ed
 .Sh KNOWN ISSUES
 If you are using urxvt you might have to set backspace key to DEC.
index ccdda8ab001acff5862ed754c8bfd4d44b34cee8..1d35f95ac81b5584f56616cfe159ccd3822a3ea4 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -411,7 +411,7 @@ static const char * const messages[] = {
 #define NNN_RESTRICT_NAV_OPEN 9
 #define NNN_TRASH 10
 #ifdef __linux__
-#define NNN_OPS_PROG 11
+#define NNN_CP_MV_PROG 11
 #endif
 
 static const char * const env_cfg[] = {
@@ -427,7 +427,7 @@ static const char * const env_cfg[] = {
        "NNN_RESTRICT_NAV_OPEN",
        "NNN_TRASH",
 #ifdef __linux__
-       "NNN_OPS_PROG",
+       "NNN_CP_MV_PROG",
 #endif
 };
 
@@ -4954,7 +4954,7 @@ int main(int argc, char *argv[])
                cfg.nonavopen = 1;
 
 #ifdef __linux__
-       if (!xgetenv_set(env_cfg[NNN_OPS_PROG])) {
+       if (!xgetenv_set(env_cfg[NNN_CP_MV_PROG])) {
                cp[5] = cp[4];
                cp[2] = cp[4] = ' ';