In the Mac, if you want to enter the directory I opened in the Finder in the terminal, I used to first hit a "CD" in the terminal, then select the folder in the finer into the terminal, and then enter the implementation. However, this is still a bit of trouble, the following describes how to directly in the Finder directly operation.
The first method:
System Preferences, keyboard-and-shortcut services, check the "New terminal window in folder location" (The following keyboard shortcuts can not be selected), and then in the Finder, select the folder in the right-click menu under "Services" there will be " Create a new terminal window "in the folder location" this submenu.
Disadvantage: Only the selected folder can be manipulated.
The second method:
Download Go2shell software in the Mac APP Store (OS X 10.9 and 10.10 supported), Link https://itunes.apple.com/us/app/go2shell/id445770608?mt=12, After downloading, in the lower right corner of the "application" found Go2shell software, press and hold the CMD key, drag it to the Finder toolbar, as shown in:
To open the Go2shell setting, paste the command in the terminal open-a Go2shell--args config and enter.
Advantages: Can not need to select the folder, the direct Point Go2shell button to open the terminal.
Disadvantage: Each time it is opened in a new terminal window, not in the new Terminal tab.
Reference:
http://www.99css.com/archives/1489
http://www.v2ex.com/t/81344
http://www.v2ex.com/t/38686
Http://www.gracecode.com/posts/3081.html
Mac opens terminal in Finder