News for hackers. Stuff that matters.
Re:Sl: a mirror version of ls by codetrotter on Friday March 30, 2018 @03:43PM (#16719200)
Counterpoint: My git workflow. I commit often and I commit a lot. For this there are a few but quite long commands that I use over and over and over again.

I turned all of them into two-letter aliases.

It’s perfect!

Here is a direct link to the line in question of my bashrc:

https://github.com/ctsrc/dotfiles/blob/a2c87d22a4de7486dadfe...

I recently put my dotfiles on GitHub. As you can see from the above linked file, my bashrc is short and sweet.

Thes dotfiles were, counter to what one might think given how few and short they are, not thrown together in short time.

These dotfiles reflect the specific workflow I’ve developed for myself over years of using FreeBSD, Linux and another couple of Unices.

In the beginning my dotfiles were long and messy and they accumulated a lot of cruft that I never used. That’s why I didn’t use to have them on GitHub. But over time I cut them down to only the things I actually used. The end result was that my entire bashrc is authored by myself for myself with nothing copy-pasted from the Internet.

That’s the secret to successful aliases as well IMO — make aliases where it really matters. Then you’ll only have a few, which in turn makes it easy to navigate systems where you don’t have your full set of dotfiles.

My git aliases are very important to me, but since there are only a handful of them and I almost don’t alias anything else, I can easily type them onto new systems by hand if need be.

There are no comments on this comment yet.