In other words, whenever you open a Terminal window or tab, if there is an open Finder window, the Terminal will start in the directory shown in the Finder window.
To make this happen, all you need to do is add the following line somewhere in your .bash_profile file in your home directory:
cd `osascript -e 'tell application "Finder" to if window 1 exists then if target of window 1 as string is not ":" then get POSIX path of (t ...
Source: http://feeds.macosxhints.com/click.phdo?i=48fea970a530ed22bf967df324462e13
No comments:
Post a Comment