Find file
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (20 sloc) 595 Bytes


Easily store and retrieve key/value pairs in an encrypted ~/.key-val Useful for things like pesky API keys.


Setting a token:

$ val foo bar

Getting a token..

$ val foo

...will return "bar"

Unsetting a token...

$ val foo --unset

...will delete the "bar"

Listing all tokens:

$ val

That's it and that's all folks.

Tab Completions

Install Dr. Nic's tabtab gem, then add this line to the bottom of your ~/.tabtab.bash:

complete -o default -C 'tabtab --gem key-val/lib/completions.rb' val

Then you can tab complete the keys.