Little Things

Ian Macdonald’s amazing bash_completion script never ceases to amaze me.

Suppose you’re unpacking one tarball in a directory full of them. If you type tar xjf then hit tab, it will complete all the .tar.bz2 files in the directory; but if you try to complete on tar xzf, it will complete the .tar.gz files. A moment’s thought will show that this is absolutely crazy talk.

I strongly advise anyone who uses bash for more than five minutes a day to get this script immediately.

Leave a Reply


Or, enter your OpenID URL to log in: (cookies required)

Just another WordPress weblog