‹ BackHN Continuity

Thread

Small programming tricks

681 points · 294 comments · signa11

  1. titzer · · focus · HN ↗
    I keep a ~/scratch.txt file and a bash alias "scratch" that will just grep it. Then I put a lot of relatively infrequently-used but often-forgetten command recipes in there, so that I can just do "scratch keygen" or whatever and it will find it. It persists longer than bash history.

    If anything, I wish I had paid a lot more attention to this in the early days and made a nicer shell environment full of my own utilities, as I felt my skills just kind of slowly erode over the years with each migration. Make a nice little nest for yourself and curate those tools as your own (text) UI.

    1. seaucre · · focus · HN ↗
      this is a great idea, thanks!
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.