Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 1fff529206
Fetching contributors…

Cannot retrieve contributors at this time

38 lines (20 sloc) 0.595 kb


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.

Jump to Line
Something went wrong with that request. Please try again.