Just a simple [cpan.org] guy, hacking Perl for fun and profit since way back in the last millenium. You may find me hanging around in the monestary [perlmonks.org].
What am I working on right now? Probably the Sprog project [sourceforge.net].
GnuPG key Fingerprint:
6CA8 2022 5006 70E9 2D66
AE3F 1AF1 A20A 4CC0 0851
Since Ovid seems to be getting buried under "Duh! - Use a revision control system" comments, I thought I'd describe my solution here.
I have a CVS repository (I'd use SVN if I was starting from scratch) that contains my 'dot' files and other stuff. I check it out into a directory called '.common-configs' with a command like this:
cvs -d ":ext:grant@cvs.server/cvs" co -d
.common-configs grant/configs
Then I cd into
So what's in my CVS repository?
The hints file is becoming increasingly necessary as my memory fails and the scope of technologies I deal with increases. The hints file itself is merely a plain text file of one-line entries of the form:
keywords:command
My bashrc file defines one shell function and one alias:
function hint() {
test -n "$*" && sed -n "/$*/Is/^\([^:]*:\) *\(.*\)$/\1\n\2\n/p" ~/.common-configs/hints
}
alias vihints='vi ~/.common-configs/hints'
Then when I want to be reminded of (for example) the command syntax for fixing a typo in a CVS commit message, I just type:
hint cvs fix
and get a response like this:
cvs fix comment:
cvs admin -m 1.12:"replacement commit message here"
The point is that the output from 'hint' is something that I can cut and paste and adapt to my current requirement. The other important thing is that the things in the hints file are things I have had to search for and things I find useful. It's not clogged with things that other people think I need to know. Therefore I won't tell you what is in the file but just tease you with a random sample of topics covered:
dotfiles everywhere (Score:2)
Re:dotfiles everywhere (Score:1)
I have to confess, I haven't come around to convert my repository either.