envstore is a simple tool that allows you to save environment variables into a separate store, list them and reload them into the shell again.
Usage:
envstore - save and restore environment variables
envstore COMMAND [ARG]
Commands:
show List saved variables in human-readable format
eval Generate shell code to set the variables
save Save a variable
rm Delete a variable
clear Clear out the stored variable
History
When I started using CAAP, I added the current track to my window manager's status bar. Obviously, CAAP would need to the MPD_HOST variable set from somewhere. You can't really interfere with the environment of a running application, except if the application itself allows for it.
So instead of hacking environment stuff into XMonad, I created something more generic: envstore. It allows you to save exported environment variables and load them again:
Example use
$ envstore save FOO
FOO does not exist in environment
$ export FOO=bar
$ envstore save FOO
(in another shell:)
$ envstore show
FOO bar
1 entries
$ envstore eval -e
export FOO=bar
$ eval $(envstore eval -e)
FOO now exists in the environment.
I have envstore started from my zshrc, so if I set MPD_HOST, I will have it in every new shell and can easily use mpc.
Product's homepage
What's New in This Release: [ read full changelog ]
· This version fixes a space handling bug in envify.
· It also adds support for the --help and --version options.