introduce

Windows Terminal is a new, modern, rich, high-performance Terminal application for command-line users. It has the following functions

  • Multiple tabs, easy to switch between tabs
  • pane
  • Unicode and UTF-8 character support
  • Gpu-accelerated text rendering engine
  • Custom theme, text, color, background, and shortcut key bindings
  • , etc.

The following is my configuration of the terminal effect, is not much better than the original terminal?

The installation

  • Install through SCOOP (scoop is described below)
 scoop install windows-terminal
Copy the code
  • It will be automatically updated if you install it through the Windows Store (recommended). Just search the store for Windows Terminal
  • A build is available on the Github release page. If you install from GitHub, the terminal will not automatically update to the new version.
  • Other installation methods can be viewed here

scoop

First, scoop is introduced to facilitate the subsequent configuration of themes.

What is run

Scoop is a software package installation tool on the Windows platform. It can manage software on the operating system. Very convenient, through a few simple commands can achieve the installation, uninstall, update and other operations.

Run the installation

Run Powshell as an administrator and paste the following commands

iwr -useb get.scoop.sh | iex
Copy the code

After the installation is successful, use

scoop help
Copy the code

Check whether information similar to the following is displayed. If information similar to the following is displayed, the operation succeeds

It is recommended that the scoop installation software directory be changed to a non-C disk. The specific setting method is as follows:

$env:SCOOP='Fill in your own catalogue here'
[Environment]::SetEnvironmentVariable('SCOOP'.$env:SCOOP, 'User')
Copy the code

Set the global installation path

$env:SCOOP_GLOBAL='Fill in your own catalogue here'
[Environment]::SetEnvironmentVariable('SCOOP_GLOBAL'.$env:SCOOP_GLOBAL, 'Machine')
Copy the code

Scoop Common commands

Scoop Install XXX // Install software scoop Uninstall XXX // Uninstall software SCOOP Search XXX // Check whether the software exists in the library scoop Update XXX // Update software scoop Info XXX // View the software information.....Copy the code

More commands can be viewed here, or typed at the terminal

scoop help
Copy the code

Terminal Subject Configuration

Scoop, we can start to beautify our terminal. According to the steps to

  • Install the terminal font, Fira Code, find the font file, double-click, and then click install in the upper left corner.

  • After installing the fonts run Powshell as administrator, type the following command to install posh-git and oh-my-posh

    Install-Module posh-git -Scope CurrentUser
    Install-Module oh-my-posh -Scope CurrentUser
Copy the code
  • Then open the default PowerShell startup configuration file with the following command (if not created)
   if(! (Test-Path -Path$PROFILE )) { New-Item -Type File -Path $PROFILE -Force } notepad $PROFILE
Copy the code
  • Enter the following command in the popup notepad content, save, close Powshell, and open the previously installed Windows Terminal
Import-module posh-git import-module oh-my-posh set-theme PowerLine // Set the ThemeCopy the code
  • Find the button in the image below and click Settings. There is a configuration JSON file. Open it

  • Open after the specific configuration, you can view the document for some custom Settings, here is the Chinese document, lazy people can directly go to my Github, copy my configuration and replace

Terminal alias alias

Powshell also has a nickname, which can quickly improve our work efficiency. Some common aliases are built-in, which can be viewed by using the following command

Get-Alias
Copy the code

Of course, we can also set some of their own common aliases, the specific Settings are as follows:

  • Open the powshell configuration file in Terminal. If vscode is available, replace Notepad with code. Vscode is highlighted for a better experience
notepad $PROFILE
Copy the code
  • Add the alias in the configuration file, the specific method of adding, can view the document to explore
  • This is my Settings file

Common Shortcut keys

  • Shift Alt + to open a new command line in landscape on the same TAB
  • Shift Alt – opens a new command line in the same TAB portrait
  • CTRL + Shift + W to close a command line
  • CTRL shift F, command line search….. See the documentation for more shortcuts

tool

Here are some commonly used tools to improve our work efficiency.

wallhaven

Wallhaven, which is full of hd wallpapers, is very high quality, and you can select the background image of the terminal from it

Windows Terminal Themes

Online color matching tools, color schemes to countless

WindowsTerminalHere

WindowsTerminalHere implements a git bash Here effect by right-clicking on any folder and adding the ability to open with WindowsTerminal. Open the link and download the.INF file. Right click to download the file and click Install

gsudo

Gsudo, which achieves the same effect as sudo, solves the permission problem. To run Powshell as administrator, enter the following command

scoop install gsudo -g
Copy the code

Once the installation is complete, you can happily switch to administrator mode by adding gsudo before the commands you need to use

quicklook

Quicklook is a software that allows you to quickly preview files by simply pressing the space bar. It supports a wide range of formats

scoop install quicklook
Copy the code

everything

It’s a software that most of you probably know, super fast file retrieval

scoop install everything
Copy the code

utools

Utools is a minimalist, plug-in, cross-platform modern desktop software. With the freedom to choose a rich plug-in, create your handy tool set. Through Alt + space, quick call out menu, simple configuration can achieve fast translation, fast open web pages, quick open software and other commonly used practical functions. Plugin development is also very simple and you can submit your own plugin with simple configuration

The last

Complete set down, you will find that your terminal has become from the rustic baozi high rich handsome white rich beautiful terminal. Typing code is more enjoyable, you work more efficiently, and you eat better. Use it quickly!