$SHLVL
–
Zsh Nesting Level
$SHLVL contains the level of nested Z shells.
Links
Examples
- Print the nesting level of the Zsh process
- Output:
1echo $(echo $(echo $SHLVL))12
BashSupport Pro is a Zsh IDE with support for $SHLVL – try it now!