Skip to content

Commit

Permalink
Show 1 while spawning a subshell
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed Jun 25, 2017
1 parent 908965b commit ae9ee35
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nnn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ae9ee35

Please sign in to comment.