]> Sergey Matveev's repositories - nnn.git/commitdiff
Revert rename cp mv progress
authorArun Prakash Jana <engineerarun@gmail.com>
Fri, 16 Aug 2019 16:52:45 +0000 (22:22 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Fri, 16 Aug 2019 16:52:45 +0000 (22:22 +0530)
README.md
nnn.1
src/nnn.c

index 38dd11fb651651264c768778a4defa0596434d18..dabb8318dfdadac314f75d0c9d2de65026d78d9e 100644 (file)
--- a/README.md
+++ b/README.md
@@ -227,7 +227,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_CP_MV_PROG=1` | show copy, move progress on Linux |
+| `NNN_OPS_PROG=1` | show copy, move progress on Linux |
 
 #### Cmdline options
 
diff --git a/nnn.1 b/nnn.1
index eae9f6d7ecc0f1b461392cdff721a7a675341b3a..3d577672a82b5eb973b75e60207a62cf6cd2a2e8 100644 (file)
--- a/nnn.1
+++ b/nnn.1
@@ -206,9 +206,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
 
     NOTE: BSD and macOS users can press '^T' to check the progress.
 .Ed
index 41acdd5876904d543ac945237663f8d283fa2662..f60384ccbb9f3b07b77c1c10b6b1168c2717c753 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -408,7 +408,7 @@ static const char * const messages[] = {
 #define NNN_RESTRICT_NAV_OPEN 9
 #define NNN_TRASH 10
 #ifdef __linux__
-#define NNN_CP_MV_PROG 11
+#define NNN_OPS_PROG 11
 #endif
 
 static const char * const env_cfg[] = {
@@ -424,7 +424,7 @@ static const char * const env_cfg[] = {
        "NNN_RESTRICT_NAV_OPEN",
        "NNN_TRASH",
 #ifdef __linux__
-       "NNN_CP_MV_PROG",
+       "NNN_OPS_PROG",
 #endif
 };
 
@@ -4941,7 +4941,7 @@ int main(int argc, char *argv[])
                cfg.nonavopen = 1;
 
 #ifdef __linux__
-       if (!xgetenv_set(env_cfg[NNN_CP_MV_PROG])) {
+       if (!xgetenv_set(env_cfg[NNN_OPS_PROG])) {
                cp[5] = cp[4];
                cp[2] = cp[4] = ' ';