浏览代码

Rename env var

master
Arun Prakash Jana 6 年前
父节点
当前提交
f77d9bef3d
找不到此签名对应的密钥 GPG 密钥 ID: A75979F35C080412
共有 3 个文件被更改,包括 6 次插入6 次删除
  1. +1
    -1
      README.md
  2. +2
    -2
      nnn.1
  3. +3
    -3
      src/nnn.c

+ 1
- 1
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_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_RESTRICT_0B=1` | do not open 0-byte files |
| `NNN_TRASH=1` | trash files to the desktop Trash [default: delete] | | `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 #### Help




+ 2
- 2
nnn.1 查看文件

@@ -353,9 +353,9 @@ files.
export NNN_TRASH=1 export NNN_TRASH=1
.Ed .Ed
.Pp .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 .Bd -literal
export NNN_CP_MV_PROG=1
export NNN_OPS_PROG=1
.Ed .Ed
.Sh KNOWN ISSUES .Sh KNOWN ISSUES
If you are using urxvt you might have to set backspace key to DEC. If you are using urxvt you might have to set backspace key to DEC.


+ 3
- 3
src/nnn.c 查看文件

@@ -447,7 +447,7 @@ static const char * const messages[] = {
#define NNN_RESTRICT_0B 13 #define NNN_RESTRICT_0B 13
#define NNN_TRASH 14 #define NNN_TRASH 14
#ifdef __linux__ #ifdef __linux__
#define NNN_CP_MV_PROG 15
#define NNN_OPS_PROG 15
#endif #endif


static const char * const env_cfg[] = { static const char * const env_cfg[] = {
@@ -467,7 +467,7 @@ static const char * const env_cfg[] = {
"NNN_RESTRICT_0B", "NNN_RESTRICT_0B",
"NNN_TRASH", "NNN_TRASH",
#ifdef __linux__ #ifdef __linux__
"NNN_CP_MV_PROG",
"NNN_OPS_PROG",
#endif #endif
}; };


@@ -4102,7 +4102,7 @@ int main(int argc, char *argv[])
cfg.restrict0b = 1; cfg.restrict0b = 1;


#ifdef __linux__ #ifdef __linux__
if (!getenv(env_cfg[NNN_CP_MV_PROG])) {
if (!getenv(env_cfg[NNN_OPS_PROG])) {
cp[5] = cp[4]; cp[5] = cp[4];
cp[2] = cp[4] = ' '; cp[2] = cp[4] = ' ';




正在加载...
取消
保存