Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
How to detect that Zsh startup is result of exec zsh?
- X-seq: zsh-users 21886
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: How to detect that Zsh startup is result of exec zsh?
- Date: Tue, 13 Sep 2016 14:23:23 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=9n+Lsrw4BoGoznxJZ21uAWkFBjX/LIXea7WEnUwioqA=; b=p1nEeZUDUaJOWg6/6srIYe4ltSTINP4cnhmPBNmSGz+Q+6jVaHmC76gYcaf5bHnmQ2 cj4AP2HgMW5Mmwh9Pe7b0mqXJyKYUd3HY7ph3sZ3mtI3NXqoeI/n+9aLzwj4cK7TK+jw 4C7e9f4HWz24sQJFRapLU6RNDfVZKpfENbUZK84x3bPcoMQVy+61Kdmr51nGYC+dCJ2x tPHJQ38hMRbLURLjOTsx68+vNIfs1viq5Xp4cKiO24CznWIAy5UANRlpceBqdm0MPCRK yhu6z557+KYqdMfT/Vz6qc+8XwcIjJ0I5FZMoPfTv1i5a+QQJehRNLkn0fhnFznZezB1 B2pQ==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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