What is ZSH??

  • ZSH is a beautification command line tool

Second, the installation

WSL+Windows Terminal

1. WSL (Windows Subsystem for Linux)

  • Linux subsystem under Windows system

2. Windows Terminal

  • Windows Terminal is a new terminal application for users of command-line tools and shells such as command prompt, PowerShell, and Windows Subsystem for Linux (WSL).

3. The installation

  • (1) Open PowerShell in administrator mode and type the following command: Enable-Windows Optionalfeature -Online -FeatureName microsoft-windows-subsystem -Linux, then the system needs to restart, wait for ing.
  • (2) Go to MicroSoft Store to download Ubuntu and Windows Terminal

  • (3) Open Windows Terminal and switch to Ubuntu mode to install ZSH and OH-my-zsh

  • Install ZSH using commands
Install ZSH exec ZSH switch to ZSHCopy the code
  • Install oH-my-zsh by using the command
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Copy the code

Remind!!!! If the oh-my-zsh file fails to be downloaded, you can use Windows Terminal to create a. Sh file, open it in Notepad, copy the content in the above link to the created. Sh file, and run the sh -c file to install it successfully

Effect of three,

  • After the successful installation, you can see that the VSCode terminal has an Ubuntu(WSL) option. After selecting this terminal, you can see the effect of oH-my-zsh