Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Command-drag to Terminal to change directory ' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Command-drag to Terminal to change directory
Authored by: asher on Jul 30, '12 11:30:46AM

For 10.7, and number of earlier versions, dragging an icon to terminal pasted in the path. So I always typed cd and a space before the drag. Very handy. Command drag had the same behavior in those versions as plain drag. I used bash.



[ Reply to This | # ]
Command-drag to Terminal to change directory
Authored by: fferitt25 on Jul 31, '12 11:06:05AM

Agreed !

I am in SNL currently and this result occurs when dragging anything to the Terminal. I also type cd + space before hand and it will change me to the filepath pointed to.

So I suppose I'm not understanding the 10.8 function.

When you all do this is it actually opening the Folder Location on the Desktop as opposed to moving you to the directory inside of Terminal ?

And IF SO - why take the time and effort to open Terminal - drag a folder to the Terminal only to open the Folder ? Why not simply double-click the Folder icon or select it and hit Command+O on the keyboard ?

Seems like many of these types of hints are counter-productive and take extra effort - tossed into that category of "we do it because we can" rather than something actually useful.



[ Reply to This | # ]
Command-drag to Terminal to change directory
Authored by: TheGS on Aug 01, '12 04:19:13AM
On 10.8, command-dragging the folder icon into the terminal window do these 3 things beyond simply entering in the path to the folder, in this order...
  1. Cancel what's currently on the command line and re-display the prompt (on the next line, etc.)
  2. Enter 'cd' and a space and then the path to the directory and then a semi-colon.
  3. Finally execute the above 'cd' command for you.

No need for you to manually type the 'cd ' and then drag the icon in and then hit enter if all you want to do is cd to that directory; Terminal.app does all that for you if you hold down the command key.

[ Reply to This | # ]

Command-drag to Terminal to change directory
Authored by: gpitts on Aug 08, '12 02:31:35PM

Dragging an icon to get the path in terminal goes all the way back to NeXTStep/Openstep. The cmd-drag thing is apparently new.



[ Reply to This | # ]