1. Install basic components First, execute the yum install -y zsh git Install the wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh Use which zsh Use the chsh -s /usr/bin/zsh 2. Perform optional configuration 2.1 Installing ZSH Icon Font Execute the following command to pull the icon repository in the current directory, switch to its directory, and execute the git clone https://github.com/powerline/fonts.git 2.2 Change ZSH theme Use the 2.3 Installing plugins The main reason for using ZSH to replace the original SHELL is to use its powerful plug-ins. Here we only recommend installing three plug-ins, namely First, execute the following commands in sequence to clone the repositories of the following two plug-ins into the plug-in directory of Oh My Zsh. cd ~/.oh-my-zsh/custom/plugins git clone https://github.com/zsh-users/zsh-syntax-highlighting.git git clone https://github.com/zsh-users/zsh-autosuggestions.git After the cloning operation is completed, the full paths of the two plug-ins are: /root/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-syntax-highlighting.zsh /root/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh Continue to use # Other content plugins=( git wd zsh-syntax-highlighting zsh-autosuggestions ) source /root/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-syntax-highlighting.zsh source /root/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh source $ZSH/oh-my-zsh.sh # Other content After editing, execute the Summarize The above is the configuration method of installing ZSH terminal in CentOS 7.x introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! |
<<: MySQL incremental backup and breakpoint recovery script example
>>: Implementing license plate input function in WeChat applet
Mobile browsers place web pages in a virtual "...
Table of contents 1. Purpose 2. Grammar 3. Practi...
How to use the code in NetEase Blog: First log in...
Some time ago, I encountered the problem that the...
This article shares with you a detailed tutorial ...
This article introduces how to install MySQL 8.0 ...
question When we are developing normally, if we w...
This article shares the specific code for the WeC...
SQL finds all duplicate records in a table 1. The...
User Groups In Linux, every user must belong to a...
Table of contents 1. Digital Enumeration 2. Strin...
Keywords General The title cannot contain words l...
Effect principle Mainly use CSS gradient to achie...
We usually use routing in vue projects, and vue-r...
This article uses examples to describe how to use...