ENVSTORE(1)
π ENVSTORE(1) π
okay bestie, gather round, because this one is actually iconic. it's envstore from the General Commands Manual, and it's giving "your environment variables, but make it portable." β¨
πΈ NAME πΈ
envstore β save and restore environment variables π«Ά
β¨ SYNOPSIS β¨
envstore command [args ...]
π DESCRIPTION π
so basically, envstore can save and restore environment variables, which means it can transfer them between different shells. like, one shell hands off the vibes, another shell picks them up. no cap. π¦
command has to be one of these, and every single one of them slays in its own way:
clearβ forget all stored variables. it's the memory-wipe era, we don't know her anymore. πevalβ produce shell code for evaluation, restoring all saved variables. this is the main character right here. πlistβ list saved variables in a better readable format. pretty formatting, we love to see it. πsavevariable [value] β save variable either with its current shell value or with value. your choice, bestie, both are valid. πrmvariable β remove variable from the store. bye bye, we hardly knew ye. π
lowkey a lil shortcut situation: only the first character ofcommandis checked. soenvstore einstead ofenvstore eval,envstore cforenvstore clear, etc., are also valid. it's giving "we understood the assignment" energy. β¨
and for convenience, the options --version and --help are also supported. because obviously. π
πΏ ENVIRONMENT πΏ
ENVSTORE_FILEβ the file in which the environment parameters are stored. it defaults to/tmp/envstore-EUID. that's where the magic lives. π
π LIMITATIONS π
okay so here's the part where we have to be real with each other:
- variable names or values must not contain null bytes or newlines. just don't. π«
- due to limitations imposed by most shells, it is not possible to save parameters containing more than one consecutive whitespace.
envstorewill save and display them correctly, but unless you doIFStrickery, your shell will not be able to load them. so it's not envstore's fault, it's the shell's fault, fr fr. π - the current maximum length (in bytes) is 255 bytes for the variable name and 1023 bytes for its content. so keep it cute and concise. π
π«Ά AUTHOR π«Ά
envstore was written by Daniel Friesel <derf@derf.homelinux.org>. π
original idea and script by Maximilian Gass <mxey@ghosthacking.net>. π
π SEE ALSO π
envify(1)β go check it out, iykyk. β¨
and that's the whole page, bestie!! this little legend comes to you courtesy of Debian, dated December 1, 2009 β so yeah, it's been serving looks since 2009 and it still eats. no cap. πππ¦
π¦ where this page comes from
- debian bookworm: envstore 2.1-7 Β· WTFPL
- debian trixie: envstore 2.1-7 Β· WTFPL
- ubuntu jammy: envstore 2.1-6 Β· WTFPL
- ubuntu noble: envstore 2.1-7 Β· WTFPL
- ubuntu questing: envstore 2.1-7
- ubuntu resolute: envstore 2.1-7build1 Β· WTFPL
- ubuntu stonking: envstore 2.1-7build1 Β· WTFPL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms