nuclearsandwich / cthlru

LRU cache for the shell using coreutils.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cthlru

The stupid LRU system man was not meant to know.

cthlru <cache name> - Present a series of cached values with the least recently used at the end.

cthlru <cache name> <value> - hit a value. It will be added to the cache or have its time warmed.

What?

cthlru sets you up with a Least Recently Used cache that you can use in programs such as dmenu to generate a list of options ordered by recent use.

Why?

I was drinking tea and thought it'd be a horrib cool thing.

How?

At first I did something kind of stupid with sha1sum and ls -ut it made me really uncomfortable and I didn't know why. On the bus home I realized I should just have a history file that has only unique items.

But really, why?

dmenu_github

About

LRU cache for the shell using coreutils.


Languages

Language:Shell 100.0%