Browse Source

Show 1 while spawning a subshell

master
Arun Prakash Jana 7 years ago
parent
commit
ae9ee35e0c
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      nnn.c

+ 3
- 1
nnn.c View File

@@ -409,8 +409,10 @@ spawn(char *file, char *arg1, char *arg2, char *dir, uchar flag)
status = chdir(dir);

/* Show a marker (to indicate nnn spawned shell) */
if (flag & SP_MARKER)
if (flag & SP_MARKER) {
printf("\n +-++-++-+\n | n n n |\n +-++-++-+\n\n");
printf("Shell Level %s\n", getenv("SHLVL"));
}

/* Suppress stdout and stderr */
if (flag & SP_NOTRACE) {


Loading…
Cancel
Save