--- tags: Tutorials --- # Installing Windows Terminal Without The Microsoft Store If you aren't afraid to log into your Microsoft account, just install it from the Microsoft store [Here](https://www.microsoft.com/en-gb/p/windows-terminal/9n0dx20hk701?rtc=1&activetab=pivot:overviewtab) instead. ![](https://i.imgur.com/sGNNorN.png) So you've probably seen [this](https://youtu.be/8gw0rXPMMPE) trailer and wondered what happened to the fancy new terminal. Well - it's perfectly usable and gets regular updates. It's just owned by Microsoft so they make it as hard as possible for people to install it. Anyway the first thing you want to do is get the damn thing. The "official" way to download it is through the Microsoft Store on Windows 10. (Now you see why you haven't heard about it). This sucks, as you have to have to login with a Microsoft account to download it. Unfortunately this is the only way to get regular updates for it, but updating it isn't so bad with this method. ## Installing from Chocolatey [Chocolatey](https://chocolatey.org) is a very versatile package manager, similar in some ways to `apt-get` in linux, or `npm` in the world of node.js. Microsoft Windows Terminal has been packaged in Chocolatey in the package [`microsoft-windows-terminal`](https://community.chocolatey.org/packages/microsoft-windows-terminal/1.15.2524.0). So just install it: `choco install microsoft-windows-terminal -y` ## Installing from msixbundler If you don't want to use Chocolatey, you can grab the release directly from Github. 1. Go [here](https://github.com/microsoft/terminal/tags) and download the `.msixbundle` from the latest release. 2. Open a Powershell window in the directory where you download the file. 3. Type `Add-AppxPackage` (space) `the full file-name you downloaded`. So for me it would be `Add-AppxPackage Microsoft.WindowsTerminalPreview_1.7.572.0_8wekyb3d8bbwe.msixbundle` 4. That's it! Search for "Terminal" in your search bar and "Windows Terminal Preview" should show up. I recommend creating a shortcut for it on your desktop or taskbar or w/e. ## Running cmd files So you have Windows Terminal. Unfortunately, when you run a `.bat` or `.py` or `.ps1` file, it'll open in a bog standard cmd window. To combat this, we need to edit the registry again. ### For .bat files Open a cmd window (Must be cmd and must be in Administrator mode) and copy/paste this. `ftype batfile="%LOCALAPPDATA%\Microsoft\WindowsApps\wt.exe" "%1" %*` As you can see, this modifies the exe `.bat` files open by default in to the Windows Terminal exe. There's a lot of parameters to play around with here. Personally, I put `-w 0`. This opens whatever i'm opening in my current Windows Terminal window in a new tab. For reference, that command would look like `ftype batfile="%LOCALAPPDATA%\Microsoft\WindowsApps\wt.exe" -w 0 "%1" %*` You can replicate this for whatever type of file you're opening. Unfortunately, Windows Terminal does not support replacing your default Windows cmd console yet, but this is an ok work-around for specific files. The `-w` parameter was added to Windows Terminal in [this pull request](https://github.com/microsoft/terminal/pull/8898). ## Right-click context menu ![](https://i.imgur.com/HDW0Cfr.png) 1. Create a new file on your desktop named "1.reg". 2. Right click to edit it and paste this code inside. ```bash Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\Background\shell\windowsterminal] @="Windows Terminal Here" [HKEY_CLASSES_ROOT\Directory\Background\shell\windowsterminal\command] @="\"C:\\Users\\swept\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe\"" ``` 3. Replace "swept" with your username. 4. Save the file and double-click it, it'll ask you to confirm and stuff. 5. Done! Should be able to right-click and open it wherever. ## Integrating Git Bash 1. In Windows Terminal, hit the dropdown and go to settings. 2. Scroll down to the bottom and click "Open JSON file". (You could add this with the GUI but this is quicker). 3. In the JSON file, scroll to the `profiles:` section and underneath `list:` paste this code into it. (I'm assuming you know how to indent and shit so it works). ```json { "acrylicOpacity": 0.75, "background": "#000000", "closeOnExit": "graceful", "colorScheme": "Campbell", "commandline": "C:\\Program Files\\Git\\bin\\bash.exe", "cursorColor": "#FFFFFF", "cursorShape": "bar", "fontFace": "Consolas", "fontSize": 10, "guid": "{00000000-0000-0000-0000-000000012345}", "historySize": 9001, "icon": "%PROGRAMFILES%\\git\\mingw64\\share\\git\\git-for-windows.ico", "name": "Git Bash", "padding": "0, 0, 0, 0", "snapOnInput": true, "useAcrylic": true }, ``` 4. That should be it! You can change it to your default profile and stuff in the GUI. If you want the classic Git Bash color paste this into the `schemes:` section and set `"colorScheme" : "GitBash",` in the previous bit of code. Git Bash color scheme ```json "schemes" : [ { "background" : "#000000", "black" : "#0C0C0C", "blue" : "#6060ff", "brightBlack" : "#767676", "brightBlue" : "#3B78FF", "brightCyan" : "#61D6D6", "brightGreen" : "#16C60C", "brightPurple" : "#B4009E", "brightRed" : "#E74856", "brightWhite" : "#F2F2F2", "brightYellow" : "#F9F1A5", "cyan" : "#3A96DD", "foreground" : "#bfbfbf", "green" : "#00a400", "name" : "GitBash", "purple" : "#bf00bf", "red" : "#bf0000", "white" : "#ffffff", "yellow" : "#bfbf00", "grey" : "#bfbfbf" }, ... ``` ## Integrating with IDEs ### Visual Studio Code Ez, just download and install [this addon](https://marketplace.visualstudio.com/items?itemName=Tyriar.windows-terminal). ### Visual Studio 1. Download the Visual Studio .icon from [here](https://iconarchive.com/download/i98390/dakirby309/simply-styled/Microsoft-Visual-Studio.ico). 2. In settings.json, copy/paste this into it. ```json { "acrylicOpacity": 0.75, "closeOnExit": true, "colorScheme": "Campbell", "commandline": "cmd.exe /k \"C://Program Files (x86)//Microsoft Visual Studio//2019//Community//Common7//Tools//VsDevCmd.bat\"", "cursorColor": "#FFFFFF", "cursorShape": "bar", "fontFace": "Consolas", "fontSize": 10, "guid": "{00000000-0000-0000-0000-000000012348}", "historySize": 9001, "icon": "C:\\Users\\james\\vs.ico", "name": "VS Command Prompt", "padding": "0, 0, 0, 0", "snapOnInput": true, "startingDirectory": "%USERPROFILE%", "useAcrylic": true, "suppressApplicationTitle": true, "tabTitle": "VS Command Prompt" }, ``` 3. You will need to change the `"commandline:"`path to whatever your version of Visual Studio is. ### Rider ## Custom Terminals This is overkill but it's how I setup mine. 1. Copy/Paste this directly below the Git Bash entry. ```json { "acrylicOpacity": 0.97999999999999998, "background": "#000000", "closeOnExit": "graceful", "commandline": "\"%PROGRAMFILES%\\git\\bin\\bash.exe\" --login -i -l", "cursorColor": "#FFFFFF", "cursorShape": "bar", "experimental.retroTerminalEffect": false, "fontFace": "Consolas", "fontSize": 11, "guid": "{00000000-0000-0000-0000-000000012346}", "historySize": 9001, "icon": "C:\\Users\\swept\\icon.ico", "name": "SS14", "padding": "0", "snapOnInput": true, "startingDirectory": "C:\\Users\\swept\\Desktop\\SS14 Github\\space-station-14", "suppressApplicationTitle": true, "tabTitle": "Space Station 14", "useAcrylic": true }, ``` 2. Change `"startingDirectory":` to wherever you want Git Bash to start-in. Since this is for SS14, i've set it up to my local directory. 3. If you want the SS14 icon, download it from [here](https://raw.githubusercontent.com/space-wizards/SS14.Launcher/master/SS14.Launcher/Assets/icon.ico) and put it in a safe place. Then change `"icon":` to that path 4. For the background image, you can set it in the GUI. Just mess around with it to how you like. If you want the background I used i'll paste them below. 5. Last thing, I changed the color scheme to be a bit more like SS14s. Here's the values I used, remember to set the actual color scheme. ```json { "background": "#25252A", "black": "#25252A", "blue": "#464966", "brightBlack": "#767676", "brightBlue": "#3B78FF", "brightCyan": "#61D6D6", "brightGreen": "#16C60C", "brightPurple": "#B4009E", "brightRed": "#E74856", "brightWhite": "#F2F2F2", "brightYellow": "#F9F1A5", "cursorColor": "#FFFFFF", "cyan": "#3A96DD", "foreground": "#D5D5D5", "green": "#3E6C45", "name": "SS14", "purple": "#881798", "red": "#E23229", "selectionBackground": "#FFFFFF", "white": "#CCCCCC", "yellow": "#A88B5E" }, ``` ## Backgrounds ![](https://i.imgur.com/FoOxy7J.png) ![](https://i.imgur.com/q8A6iMC.png) ![](https://i.imgur.com/4V8h4ri.png) ![](https://imgur.com/oMq3pBE.png) ![](https://imgur.com/N2vI2Gq.png)