![]() It's always better to be platform agnostic whenever possible (if it's not too much of a time tradeoff), as you will incur less technical debt later. ![]() Please note that chown's -R flag should be used with the utmost confidence. You could really mess up your system (Although it is worth noting that Apple made it hard to do since they implemented System Integrity Protection).Ĭonsider, for instance, if you were to chown -R 755 /var instead of chown -R 755 /var/Hopefully, someone finds this helpful.Maybe you need to quickly ping a server, use Homebrew, push git changes, reboot or shut down a remote machine, connect to a remote server with ssh, or any other quick task that requires the command line. Whatever the need, you can use this great trick to have an immediately available terminal window from anywhere or from within any application in Mac OS. How to Setup Instant Command Line Access with iTerm2 To get the drop-down command line, you will use a third party app called iTerm2, which is a popular third party terminal client for the Mac. Download iTerm2 from the developer, place it into you /Applications/ folder, then launch iTerm2.Pull down the “iTerm2” menu and choose “Preferences”.Choose the “Keys” tab and click the “Create a Dedicated Hotkey Window” button. ![]() Set your hot key keyboard shortcut as desired, or choose “Double-Tap Key” and set that accordingly, the example here uses a double-tap of the ‘Control’ key to access the drop-down command line panel.Click “OK”, optionally go to the “Profiles” menu and customize the appearance by modifying the ‘Hotkey Window’ profile as desired.Confirm the drop-down instant terminal window works as expected by pressing your hot key (double-tap Control key in this example).Dismiss the drop-down command line panel by clicking outside of the terminal window, or by hitting the hot key again.TermHere supports the stock Terminal app, but you can assign it to interface with certain third-party apps, like iTerm2, via its preferences. For example, if I right click and select New Terminal Here while within /Applications/Xcode.app/Contents/Developer/, then my Terminal window will open to that same location. Wherever you happen to be within Finder is where the Terminal window directory will point to once the Terminal opens. ![]() Once you do, it’s simply a matter of right-clicking while inside of a Finder window to view the New Terminal Here shortcut. Watch our brief hands-on video inside to see it in action.Īfter you install TermHere, you’ll need to open System Preferences → Extensions, and enable the TermHere Finder extension. TermHere may feature a straightforward premise, but it’s very nice to have if you’re a developer or avid Terminal user. Once enabled, right-clicking inside of the Finder will present a new shortcut to jump to a Terminal window pointed to the current working directory. ![]() TermHere is a new app available on the Mac App Store that serves as a Finder extension. ![]()
0 Comments
Leave a Reply. |