Skip to main content

Windows Terminal: Notes

Windows Terminal 1.0

Windows Terminal is a modern terminal application for users of command-line tools and shells like Command Prompt, PowerShell, and Windows Subsystem for Linux (WSL).

Keep updating

May 20th, 2020: Version 1.0

CTRL + SHIFT + C : Copy

ALT + SHIFT + - : Split screen horizontally
ALT + SHIFT + + : Split screen vertically
ALT + SHIFT + D : Split screen vertically (too)

CTRL + rotate mouse wheel : Zoom in/out text

Change default profile

Modify defaultProfile in settings.json file

{
    "$schema": "https://aka.ms/terminal-profiles-schema",
    "alwaysShowTabs" : true,
    // "defaultProfile" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", // Powershell
    "defaultProfile" : "{574e775e-4f2a-5b96-ac1e-a2962a402336}", // Powwershell Core
    ...

Set starting directory

        {
            "guid": "{46ca431a-3a87-5fb3-83cd-11ececc031d2}",
            "hidden": false,
            "name": "kali-linux",
            "source": "Windows.Terminal.Wsl",
            "startingDirectory": "\\\\wsl$\\kali-linux\\root"
        },

Set Color Tab

        {
            "guid": "{46ca431a-3a87-5fb3-83cd-11ececc031d2}",
            "hidden": false,
            "name": "kali-linux",
            "source": "Windows.Terminal.Wsl",
            "startingDirectory": "\\\\wsl$\\kali-linux\\root"
            "tabColor": "#158FAD"
        },

Backup Windows Terminal settings

Location of Windows Terminal settings.json file:

Powershell: $ENV:Userprofile\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json

CMD: %userprofile%\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json

>>> Backing Up Windows Terminal Settings with PowerShell | The Lonely Administrator

Install Cascadia Code

Download and install Cascadia Code font at https://github.com/microsoft/cascadia-code/releases

Resources

Windows Terminal | Microsoft Docs

Popular posts from this blog

Windows 10 1903 Critical Error: Your Start menu isn't working

Windows 10 1903 Critical Error: Your Start menu isn't working. We'll try to fix it the next time you sign in.

[PowerShell]: Powershell script uploading backup databases to ftp server

Author:  Enrique Puig Nouselles http://gallery.technet.microsoft.com/scriptcenter/80647f66-139c-40a4-bb7a-04a2d73d423c Nhu cầu - Học sử dụng Powershell và áp dụng vào thực tế - Server chạy MS SQL được backup mỗi ngày và lưu các file backup ở folder mặc định "C:/Program Files/Microsoft SQL Server/MSSQL11.MSSQLSERVER/MSSQL/Backup" - Upload các file database backup về một ftp server khác để lưu "offsite" # Begin script # Thanks to: Enrique Puig Nouselles http://gallery.technet.microsoft.com/scriptcenter/80647f66-139c-40a4-bb7a-04a2d73d423c # Khai báo folder chứa các file backup database, dưới đây là folder backup mặc định của MS SQL 2012 $Dir="C:/Program Files/Microsoft SQL Server/MSSQL11.MSSQLSERVER/MSSQL/Backup"   # ftp server $ftp = "ftp://IPAddres/subfolder/subsubfolder" $user = "usernamehere" $pass = "passwordhere" # DO NOT use $(Get-Date), use $d variable instead, otherwise SQL Agent gets error "The...