hyper icon indicating copy to clipboard operation
hyper copied to clipboard

Open new window via the command line

Open OhadRubin opened this issue 3 years ago • 1 comments

Hey, I started using a mac recently, and I would like to have a dedicated button to open a new terminal window, the way I have it now is: I have keyboard shortcut to launch open -a iTerm ~.
I want to switch to hyper but right now I didn't find any way to do this without creating a new instance (and spamming my Dock with a thousand instances). I would like to use Hyper and this is a must feature before I switch (I know it is possible to do with tabs but I don't like them). Is there a way to do this via command like? Thanks! Ohad

OhadRubin avatar May 17 '22 13:05 OhadRubin

so i managed to do it with the following:

open -a hyper && osascript -e 'tell application "System Events" to keystroke "n" using {command down}'

Thanks!

OhadRubin avatar May 17 '22 14:05 OhadRubin