Files
lix/doc/manual/rl-next/nix-shell-level.md
T
Tom Hubrecht 1bfbbe2415 nix-shell: Add NIX_SHELL_LEVEL variable
This contains the depth of nix shells nesting.

Fixes #826

Co-authored-by: Qyriad <qyriad@qyriad.me>

Change-Id: If584c9d02730d6c857636dafdeab0c01f4ec8e0f
2025-12-01 12:02:45 +00:00

305 B

synopsis, cls, issues, category, credits
synopsis cls issues category credits
Add an indication of nix-shell nesting depth
4657
fj#826
Improvements
thubrecht

When in a nix shell (either via a nix-shell or a nix develop invocation), a variable NIX_SHELL_LEVEL is exported to indicate the nesting depth of nix shells.