envstore

Allows you to save environment variables into a separate store, list them and reload them into the shell again.
Download

envstore Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Maximilian G.
  • Publisher web site:
  • http://cloudconnected.org/~mxey/

envstore Tags


envstore Description

Allows you to save environment variables into a separate store, list them and reload them into the shell again. 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 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 variableHistoryWhen 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 FOOFOO does not exist in environment$ export FOO=bar$ envstore save FOO(in another shell:)$ envstore showFOO bar1 entries$ envstore eval -eexport 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. What's New in This Release: · Rewrite test script in sh · Fix a bug when outputting parameters with empty values (envstore used to print random binary data after the value)


envstore Related Software