![]() ![]() If you like OpenInTerminal, please consider supporting this project by becoming a sponsor. Support Open-source projects cannot live long without your help. Install it by unzipping and adding to either ~/Library/Services/ (for just yourself) or /Library/Services/ (for all users). Go to System Preferences -> Extensions -> Finder Extensions, check the permission button as below. New Terminal Here is simply the easiest way to open a terminal window at the current Finder folder, you only need to right click in any Finder window and. Go back to the parent folder, select the relevant folder, then activate the service via the Services menu or context menu. You cannot simply have the folder open and run the service 'in place'. It will only take seconds to re-create this service yourself, but for convenience, I’ve zipped up my copy of the service and am attaching it to this post. The New Terminal at Folder service will become active when you select a folder in Finder. usr/bin/open "$f" -a /Applications/Utilities/Terminal.app/ The service has only one action, a Run Shell Script action with the shell set to bash, the input passed as arguments, and the following content: for f in " " Armed with this simple command line solution I opened up Automator and threw together a simple OS X service that takes a folder as input. After the command executes, quit Terminal. ![]() ![]() Enter chflags nohidden Library at the Terminal prompt: Press Return. Or: Open Terminal > and type: open /. zshrc in your current directory but it will be hidden) Hit Return To view/open /.zshrc you can do either of two things: Open Finder > Press Cmd + Shift +. Today inspiration hit me – the open command should let me open a folder with the Terminal, so I tested it, and it does. Launch Terminal, located in /Applications/Utilities. Open Terminal Type touch /.zshrc to create the respective file. Thanks to OS X’s great drag-and-drop support that works, and while it is easier than typing out the whole path (even with tab-complete), it’s still quite cumbersome. In the past I would open a Terminal window, type cd and a space, then drag and drop the folder in question from the Finder into the Terminal and hit enter. I regularly find myself navigating to a folder in the Finder and then wanting to quickly get a Terminal window in the same location. ![]()
0 Comments
Leave a Reply. |