nag: a bash script.
Saturday 11 June, 2011I made a thing called nag. Well, I copied most of it from One Thing Well. Using aliases is okay, but I kept finding myself wanting to type nag and then a command. Like nag ls to list nags or nag clr to clear nags.
It is pretty simple. It makes a file called ~/.nag and then adds and removes items.
For instance, to add something type nag add and enter your item at the prompt. That’s it. Type nag ls to see a numbered list of items like this:
1 Sleep at some point.
2 Write a post about nag.
Easy, right? You can remove one of the numbered lines by typing nag rm 1 and clearing the whole list is done with nag clr.
If you want to check it out, you can see it on GitHub.
Copy nag.sh to a directory in your $PATH (I use /usr/local/bin) and relaunch your shell. If you don’t have a ~/.nag file, it will make one for you.
Back