From http://www.debian-administration.org/article/317/An_introduction_to_bash_completion_part_2