Hacker News new | ask | show | jobs
by carapace 3283 days ago
I have a lil thing I call "did" that just greps my shell history for a term, sorting and de-duplicating the result:

    $ cat `which did`
    grep $1 ~/.bash_history | sort | uniq

I also set HISTSIZE=10000000

I don't mind having a large history file laying around because it's so useful.

1 comments

Thanks for this one. I hadn't stumbled on a good way to search my history before.
Cheers. :)