Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

And when you are in terminal and want to change dir to some different path, just drag and drop it from finder (either a file or just a icon from the title bar)


If you cmd-drop a file icon into Terminal, it will automatically cd into the parent directory, it prefixes the path with cd and appends ; at the end and executes it. If the icon is a folder, it will automatically cd into that directory.

If you shift-drop a file icon into Terminal, it will paste the file path to the command line without escaping spaces.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: