This is a simple solution and it works, but the reason I’m not a fan of it is: Similarly, Windows Key + 1 would launch Edge, and Windows Key + 2 would launch Chrome. Not only does it make it easy to click on with the mouse, but you can also use the Windows Key + keyboard shortcut to launch it or put it in focus.įor example, if on your taskbar from left to right you have: Edge, Chrome, Windows Terminal, then you could use Windows Key + 3 to launch the Windows Terminal, or put it in focus if it’s already open. The easiest way to get to the Windows Terminal using a keyboard shortcut is to pin it to the taskbar. Method 1: Pin Windows Terminal to the taskbar One feature I missed right away was ConEmu allows you to set a keyboard shortcut to put it in focus.Īs a software developer, I’m constantly in and out of the terminal, and being able to get to it in a keystroke is very convenient. I’d also recommend following Scott Hanselman’s post about how to make it look nicer. While the Windows Terminal is not as mature and feature rich as ConEmu, I did enjoy it, and it’s being actively worked on with plenty of features coming down the road. The recommended way to get the Windows Terminal is to download it from the Microsoft Store so that it can automatically update itself as new versions are released. I decided to try out the new Windows Terminal to see how it compared to ConEmu, which is my usual console. Open -a "Terminal" this, I can now type > new Projects/desktopprĪnd get a new Terminal window there.Bring up the Windows Terminal in a keystroke I created this function in my shell configuration file ( bash, zsh): # creates a new terminal window This is already really close to what I wanted. Will open a new Terminal window with ~/Documents as the working directory. Enter the open commandĭuring those web searches, I also found suggestions to use the open command, instead: > open -a Terminal ~/Documents (No UI Scripting solutions – those have their own issues.) I have a few other ideas where this might come in useful. If you know of a better way to create a new Terminal window or, even better, a Terminal tab with AppleScript, then please let me know. (Not to be confused with do shell script.) So this AppleScript, sort of does what I want, but seems cumbersome. You can create a new Terminal window with AppleScript using the do script command in the Terminal dictionary. The make new window or make new tab commands fail with errors and I have tried several combinations.Īfter some web searching, it looks like this has been broken for a long time. Unfortunately, this particular piece of the AppleScript dictionary is broken. > new ~/Desktop # opens a new terminal window at ~/DesktopĪfter my last success using AppleScript, I thought this would be the best solution again. What I want, is a new window that defaults to current working directory or a custom directory that I can provide with an argument: > new # opens a new terminal window at the current working directory New windows created with the keyboard shortcut or from the menu will always have the home directory ~ as the current working directory. But in some cases, it can be more useful to use a shell command. Of course, you can easily create a new Terminal window from the ‘Shell’ menu or by using the ⌘N (or ⌘T) keyboard shortcut.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |