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