envstore 2.1

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 [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.

last updated on:
June 23rd, 2010, 14:31 GMT
price:
FREE!
developed by:
Maximilian G.
homepage:
derf.homelinux.org
license type:
MIT/X Consortium License 
category:
ROOT \ Utilities
envstore
Download Button

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Rate it!
What's New in This Release:
  • This version fixes a space handling bug in envify.
  • It also adds support for the --help and --version options.
read full changelog

Add your review!

SUBMIT