For the longest time, I've been able to drop folders onto Terminal.app's dock icon and have Terminal.app open a new window with the current working directory set to the folder I dropped on Terminal.app. This is mighty handy. Unfortunately, no one else I knew could ever do this on their machines. So I figured it must've been something I did back in 10.0 or something. Recently, I worked out how to make this work in 10.4 (and probably earlier versions) for anyone.
Open Terminal's Preferences window, and change "Execute the default login shell using /usr/bin/login" to "Execute this command (specify complete path):" and enter /bin/tcsh as the command (it also works with /bin/bash). Now simply drag and drop a directory to the Terminal.app icon in your Dock (you will probably have to press Command-Option while dragging in order to force the drop). Terminal will open a new window, with tcsh set to the directory that you dropped on Terminal. I'm guessing what's actually happening is the path of the directory is being passed to the shell. Anyway, its very handy.
[robg adds: If you do this, I believe your Terminal will no longer run your shell startup scripts ... but it does work as described. For most of the convenience without the lost functionality, I rely on this hint, and just keep the script in the Sidebar -- since you're dragging and dropping anyway, the Sidebar is usually a closer and easier target to hit, and your Terminal should work as normal when you just open a new window.]
Open Terminal's Preferences window, and change "Execute the default login shell using /usr/bin/login" to "Execute this command (specify complete path):" and enter /bin/tcsh as the command (it also works with /bin/bash). Now simply drag and drop a directory to the Terminal.app icon in your Dock (you will probably have to press Command-Option while dragging in order to force the drop). Terminal will open a new window, with tcsh set to the directory that you dropped on Terminal. I'm guessing what's actually happening is the path of the directory is being passed to the shell. Anyway, its very handy.
[robg adds: If you do this, I believe your Terminal will no longer run your shell startup scripts ... but it does work as described. For most of the convenience without the lost functionality, I rely on this hint, and just keep the script in the Sidebar -- since you're dragging and dropping anyway, the Sidebar is usually a closer and easier target to hit, and your Terminal should work as normal when you just open a new window.]
•
[6,237 views]

