I have put the code on github with full instructions on how to set it up. It works by using bash_completion, .bash_profile with some applescript to control the Finder, .inputrc and .bash_aliases.
Here are some of the features:
- Changing a directory in the Terminal opens the same directory in the Finder.
- You can change the Finder window view from the Terminal (column, list, icon views).
- It is case insensitve, you can press Tab for menu completion, and Shift-Tab to expand bash aliases.
- Open a Terminal directory to the current Finder window.
[kirkmc adds: I haven't tested this, but it sounds very useful.]