SHADOWENV(1)
πΈ NAME πΈ
shadowenv(1) β from the General Commands Manual, bestie β is literally here to manipulate environment variables as you change directories. π
β¨ SYNOPSIS β¨
shadowenv [-h|-V] subcommand
π¦ DESCRIPTION π¦
okay so shadowenv provides a way to perform a set of manipulations to the process environment upon entering a directory in a shell. These manipulations are reversed when leaving the directory, and there is some limited ability to make the manipulations dynamic. periodt. π
π SUBCOMMANDS π
diff [-hnv]
Display a diff of changed environment variables.
-n,--no-colorβ Do not use color to highlight the diff.-v,--verboseβ Show all environment variables as context to the diff.
exec [--dir <dir>] <child-argv0|-- child-argv...>
Execute a command after loading the environment from the current directory.
--dir <dir>β Instead of searching from the current directory for a.shadowenv.d, search from this one.child-argv0β If the command doesn't need arguments, it can be passed directly as the last argument.child-argv...β If the command requires arguments, the command and all arguments must be passed after a--.
hook [FLAGS] [OPTIONS]
Runs the shell hook. You shouldn't need to run this manually; instead, source the output of shadowenv init to create the shell hooks that will use this command. π«Ά
--fishβ Format variable assignments for fish shell.--porcelainβ Format variable assignments for machine parsing.--silentβ Suppress error printing.--shellpid pidβ Rather than looking up the PPID, use this as the shell's pid.
init shell
Prints a script which can be eval'd to set up shadowenv in various shells.
bashβ Prints a script which can beeval'd by bash to set up shadowenv.fishβ Prints a script which can beeval'd by fish to set up shadowenv.zshβ Prints a script which can beeval'd by zsh to set up shadowenv.
trust
Mark this directory as 'trusted', allowing shadowenv programs to be run. π
prompt-widget
Print a little glyph you can include in a shell prompt to indicate that shadowenv is active. β¨
π FLAGS π
-h,--helpβ Prints help information β can also be used for more specific help with any of the subcommands.-V,--versionβ Prints the current shadowenv version.
okay that's the whole SHADOWENV(1) page from the General Commands Manual, bestie β the source footer here only gives us that manual-name line, with no version/date line to report, so this is your cute sparkly sign-off instead: stay iconic, stay trusted, and may your env vars always slay πβ¨π¦π
π¦ where this page comes from
- nixos 26.05: shadowenv 3.4.0
- nixpkgs unstable: shadowenv 3.5.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms