diff options
author | Yorhel <git@yorhel.nl> | 2021-05-12 16:30:31 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2021-05-12 16:30:43 +0200 |
commit | a6b4aead43cf7ecaa3f4d01503244a13e67b3f09 (patch) | |
tree | 6ae9702229004844c9f9497171ff629ecf144759 /doc/ncdu.pod | |
parent | e2786604643f3453501aebcfe5d9037dbb6e8a77 (diff) |
Add $NCDU_LEVEL environment variable when spawning a shell
Similar to $SHLVL and $RANGER_LEVEL.
Diffstat (limited to 'doc/ncdu.pod')
-rw-r--r-- | doc/ncdu.pod | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/ncdu.pod b/doc/ncdu.pod index 7fc04f5..02ac48a 100644 --- a/doc/ncdu.pod +++ b/doc/ncdu.pod @@ -287,6 +287,12 @@ run ncdu as follows: export NCDU_SHELL=vifm ncdu +Ncdu will set the C<NCDU_LEVEL> environment variable or increment it before +spawning the shell. This variable allows you to detect when your shell is +running from within ncdu, which can be useful to avoid nesting multiple +instances of ncdu. Ncdu itself does not (currently) warn when attempting to run +nested instances. + =item q Quit |