Home  >  Article  >  Development Tools  >  How does vscode beautify the command line? zsh tool installation tutorial sharing

How does vscode beautify the command line? zsh tool installation tutorial sharing

青灯夜游
青灯夜游forward
2021-11-30 19:14:464822browse

vscodeHow to beautify the command line? The following article will share with you a beautification command line tool zsh, and introduce the installation method of the zsh tool in vscode. I hope it will be helpful to friends in need!

How does vscode beautify the command line? zsh tool installation tutorial sharing

##1. what is zsh???

    zsh is a beautifying command line tool
2 , Install

WSL Windows Terminal

1. WSL (Windows Subsystem for Linux)

    Under Windows system Linux Subsystem

2. Windows Terminal

3. Installation

    (1) Open powershell in administrator mode and enter the following command:
  • Enable-WindowsOptionalFeature -Online - FeatureName Microsoft-Windows-Subsystem-Linux, then the system needs to be restarted and wait.
  • (2) Go to Microsoft Store to download Ubuntu and Windows terminal

How does vscode beautify the command line? zsh tool installation tutorial sharing

How does vscode beautify the command line? zsh tool installation tutorial sharing

How does vscode beautify the command line? zsh tool installation tutorial sharing

##(3) Open Windows terminal and switch to Ubuntu mode to install zsh and oh-my-zsh

How does vscode beautify the command line? zsh tool installation tutorial sharing

Install zsh through commands
  • install zsh
    exec zsh 切换到zsh复制代码
Install oh-my-zsh via command
  • sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"复制代码
Reminder! It is possible that the download of oh-my-zsh fails. In this case, you can create a .sh file through Windows Terminal, open it through Notepad, and copy the contents of the above link to the created .sh file, and then use sh - c file name, the installation will be successful

How does vscode beautify the command line? zsh tool installation tutorial sharing

##3. EffectHow does vscode beautify the command line? zsh tool installation tutorial sharing

Installation After success, you can see that there is an additional Ubuntu (WSL) option in the vscode terminal. After selecting the terminal, you can see the effect of oh-my-zsh

How does vscode beautify the command line? zsh tool installation tutorial sharing

For more knowledge about VSCode, please visit: How does vscode beautify the command line? zsh tool installation tutorial sharingvscode tutorial

! !

The above is the detailed content of How does vscode beautify the command line? zsh tool installation tutorial sharing. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:juejin.cn. If there is any infringement, please contact admin@php.cn delete