Przeglądaj źródła

Skip shell invocation to run user-scripts

master
Arun Prakash Jana 6 lat temu
rodzic
commit
9ca3f7d06b
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: A75979F35C080412
5 zmienionych plików z 5 dodań i 3 usunięć
  1. +5
    -3
      src/nnn.c
  2. +0
    -0
      user-scripts/edit.sh
  3. +0
    -0
      user-scripts/fzy.sh
  4. +0
    -0
      user-scripts/picker.sh
  5. +0
    -0
      user-scripts/sxiv.sh

+ 5
- 3
src/nnn.c Wyświetl plik

@@ -3036,13 +3036,15 @@ nochange:
continue;

mkpath(path, dents[cur].name, newpath);
/* Copy to path so we can return back to earlier dir */
xstrlcpy(path, rundir, PATH_MAX);
if (runfile[0]) {
xstrlcpy(lastname, runfile, NAME_MAX);
spawn(shell, newpath, lastname, path, F_SHELL);
spawn(newpath, lastname, NULL, path,
F_NORMAL | F_SIGINT);
runfile[0] = '\0';
} else
spawn(shell, newpath, NULL, path, F_SHELL);
spawn(newpath, NULL, NULL, path, F_NORMAL | F_SIGINT);
rundir[0] = '\0';
cfg.runscript = 0;
setdirwatch();
@@ -3807,7 +3809,7 @@ nochange:
/* Regular script file */
if (S_ISREG(sb.st_mode)) {
tmp = ndents ? dents[cur].name : NULL;
spawn(shell, scriptpath, tmp, path, F_SHELL);
spawn(scriptpath, tmp, NULL, path, F_NORMAL | F_SIGINT);
break;
}



+ 0
- 0
user-scripts/edit.sh Wyświetl plik


+ 0
- 0
user-scripts/fzy.sh Wyświetl plik


+ 0
- 0
user-scripts/picker.sh Wyświetl plik


+ 0
- 0
user-scripts/sxiv.sh Wyświetl plik


Ładowanie…
Anuluj
Zapisz