15
6
Possible Duplicate:
Bash completion for commands in Mac OS
I'm just moved from linux to mac, and one of the problems I'm having is that tab completion is only 1 level deep, and I'm not sure how to correct that.
Let me explain by example - when I used git on ubuntu, I'll start typing
$ git
and hit tab, and the shell would complete the command or display the options available for the letter\s I've typed. That's what happens on my mac as well (1 level). However, when I'd continue typing the next part of the command
$ git commit
and hit tab, mac terminal would not complete the next subcommand (for git) as it would in Linux. Same goes for other programs that support this multilevel command completion. I suspect this might be a readline library issue, but I'm not sure which one I should install.
This is definitely a bash configuration issue (since I get this behavior on mac + alot more that I have configured it for, like hostname completion) You should look around for power scripts for bash and add them to your profile. – Shane C. Mason – 2009-10-11T18:49:47.480
It is not a readline issue (in fact, it is not an "issue"), it is because Ubuntu holds your hand with custom packages for bash. – Jed Smith – 2009-10-11T18:37:02.983