monkinetic weblog

Steve Ivy's Weblog - Since 1999 - XII Ed.

GTD vs. The Bash Shell

I've been doing a major filesystem re-org lately in my ongoing mission to Get More Done. In the spirit of GTD, I created several directories starting with an "@" — @ARCHIVE, @PROJECTS, etc.

All was well and good until I tried to cd @<tab> in the parent directory. Rather than get a directory listing showing me the directories starting with @, it listed available network interfaces:

>> cd @
@::1 @broadcasthost @localhost

What the heck? I asked around, and this morning on IRC I got my answer:

>tell redmonk that bash thinks you're typing user@host
use shopt -u hostcomplete to turn that off

Hm…

> > shopt -u hostcomplete
> cd @
@ARCHIVE @PROJECTS

W00t! (Thanks to deltab on #swhack for the tip)

My name is Steve Ivy and I write about technology, the open web, social software, and general nerdity on monkinetic.com. You should follow me on Twitter or subscribe to this blog if you like what you're reading. I spend my days hacking Movable Type, python, Django, and various other efforts at Wallrazer. This is my personal site.