Skip to content

Commit

Permalink
Added readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Shinkarev authored May 7, 2020
1 parent 1a458b4 commit af75af6
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Shortcut to open Terminal on macOS

MacOS can be really strange. We have preinstalled tools to record screen, but other simple features are missing.
Like the way to open Terminal using simple shortcut.

Today this will change:)

1. Download the app from [Releases](https://github.com/s-valent/mac-terminal-shortcut/releases)
2. Unpack and hide it somewhere where it won't bother you (I choose `/Applications/Utilities`)
3. You will probably need to launch it at least once

If you completed these 3 simple steps, you will see `Open Terminal` option in Service Menu in almost every app

<img src="screenshots/menubar.png" width="60%">

If you are not happy with `⌘§` I choose, you can always go to
`System Preferences / Keyboard / Shortcuts / Services / General / Open Terminal` and change it to whatever you want
(not really, because for some strange reasons Service Shortcuts need `` to work)

<img src="screenshots/preferences.png" width="100%">

**P.S.:** I made this app because the script in Automator for some reasons was inpredictable.
Sometimes it was launching fast, sometimes it was slower than launching Terminal myself. What's the point of shortcut then?)

**P.P.S.:** Bonus content: add this to `~/.bash_profile` to open first Terminal window on current screen
using the path from Finder window.

```
cd $(osascript -e '''
tell application "System Events"
if (count of windows of process "Terminal") = 1 then
try
set frontWindow to window 1 of process "Finder"
tell application "Finder"
set posixPath to POSIX path of ((target of front Finder window) as text)
if posixPath = "/" then
return ""
else
return posixPath
end if
end tell
end try
end if
end tell
''')
```

0 comments on commit af75af6

Please sign in to comment.