]> Sergey Matveev's repositories - nnn.git/commitdiff
Add widely available cmatrix as locker fallback
authorArun Prakash Jana <engineerarun@gmail.com>
Sun, 16 Jun 2019 13:45:06 +0000 (19:15 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Mon, 17 Jun 2019 01:34:42 +0000 (07:04 +0530)
README.md
src/nnn.c

index 44e37de983599622d284baf5f9f2a4ad1ae4cac9..1a4d9c957aea83219259a28ebca5ced353724dc1 100644 (file)
--- a/README.md
+++ b/README.md
@@ -133,7 +133,7 @@ It runs on Linux, macOS, Raspberry Pi, BSD, Cygwin, Linux subsystem for Windows
 | mediainfo / exiftool | if needed | multimedia file details |
 | trash-cli | optional | trash files (default action: delete) |
 | sshfs, fusermount(3) | if needed | mount, unmount over SSHFS |
-| vlock (Linux), bashlock (macOS), lock(1) (BSD) | optional | terminal locker (fallback: [pipes.sh](https://github.com/pipeseroni/pipes.sh)) |
+| vlock (Linux), bashlock (macOS), lock(1) (BSD) | optional | terminal locker (fallback: [cmatrix](https://github.com/abishekvashok/cmatrix)) |
 | advcpmv (Linux) ([integration](https://github.com/jarun/nnn/wiki/hacking-nnn#show-cp-mv-progress)) | optional | copy, move progress |
 | `$VISUAL` (else `$EDITOR`), `$PAGER`, `$SHELL` | optional | fallback vi, less, sh |
 
index d9db166ac381c5f49837f9a8afd030387a08dd79..05a27cd69ac5b9294ec359865ddadee9b2411fd9 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -334,7 +334,7 @@ static char g_tmpfpath[TMP_LEN_MAX] __attribute__ ((aligned));
 #define ATOOL 3
 #define BSDTAR 4
 #define LOCKER 5
-#define PIPES 6
+#define CMATRIX 6
 #define NLAUNCH 7
 #define UNKNOWN 8
 
@@ -358,7 +358,7 @@ static char * const utils[] = {
 #else
        "vlock",
 #endif
-       "pipes.sh",
+       "cmatrix",
        "nlaunch",
        "UNKNOWN"
 };
@@ -2627,7 +2627,7 @@ static void lock_terminal(void)
 {
        char *tmp = utils[LOCKER];
        if (!getutil(tmp))
-               tmp = utils[PIPES];;
+               tmp = utils[CMATRIX];;
 
        spawn(tmp, NULL, NULL, NULL, F_NORMAL);
 }