$SHLVL  –  Zsh Nesting Level

$SHLVL contains the level of nested Z shells.

Examples

Print the nesting level of the Zsh process
1
echo $(echo $(echo $SHLVL))
Output:
1
2
BashSupport Pro 是一款支持 shlvl** 的 **Zsh 集成开发环境 - 立即试用
© 2020–2025 Joachim Ansorg
声明
隐私政策
许可条款