...or you could just create an alias like `cdfinder` in your `.bash_profile` for `cd "$(osascript -e 'tell app "Finder" to POSIX path of (insertion location as alias)')";`. Then, when you type `cdfinder` if will `cd` you to the topmost finder window location :)
I love this, trying it out now!
For those of you who have Alfred, I created a workflow that lets you cd into a folder with search support (similar to the find command). You can also remix it to support your terminal of choice. :)
Here's a GitHub link: https://github.com/nicknish/alfr...
Upscope
Bonsai