mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Show 1 while spawning a subshell
This commit is contained in:
parent
908965b6f5
commit
ae9ee35e0c
4
nnn.c
4
nnn.c
|
@ -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…
Reference in a new issue