Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

How to detect that Zsh startup is result of exec zsh?



Hello,
first `exec zsh` can be detected via SHLVL. It will be "1". And some
other variable set in .zshrc earlier will be non-zero. But what with
`exec zsh` ran from sub-shell?

Best regards,
Sebastian Gniazdowski



Messages sorted by: Reverse Date, Date, Thread, Author