check for env var name code example Example: zsh list environment variables It sounds like you want env.