In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
How do I install a ZSH terminal in CentOS 7.x? I believe that many inexperienced people are at a loss about this, so this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
First, install basic components
First execute the yum command to install the required zsh original program and git program to pull the code.
Yum install-y zsh git
Install the oh my zsh script (this step requires the installation of git).
Wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh-O-| sh
Use which zsh to view the installation directory of zsh, which is usually stored in the / usr/bin/zsh directory.
Which zsh
Use the chsh command to switch the shell program you are using.
Chsh-s / usr/bin/zsh
Second, make optional configuration
2.1 install ZSH icon fonts
Execute the following command to pull the icon in the current directory of the repository, and change to its directory, execute the. / install.sh script to install successfully.
Git clone https://github.com/powerline/fonts.git
2.2 change the ZSH theme
Edit the / root/.zshrc file using the vi tool, change the ZSH_THEME= "robbyussell" field to the ZSH_THEME= "agnoster" field, and update their configuration files with the source ~ / .zshrc command.
2.3 install the plug-in
The main reason to replace the original SHELL with ZSH is to use its powerful plug-ins. Only three plug-ins are recommended, which are wd, zsh-syntax-highlighting, and zsh-autosuggestions.
First, execute the following command in turn to clone the repository of the next two plug-ins to the plug-in directory of Oh My Zsh.
Cd / .oh-my-zsh/custom/pluginsgit clone https://github.com/zsh-users/zsh-syntax-highlighting.gitgit clone https://github.com/zsh-users/zsh-autosuggestions.git
After the clone operation is completed, the full path of the two plug-ins is:
/ 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 edit the ~ / .zshrc file using vi.
# other content plugins= (git wd zsh-syntax-highlighting zsh-autosuggestions) source / root/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-syntax-highlighting.zshsource / root/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zshsource $ZSH/oh-my-zsh.sh# other content
After editing, execute the source ~ / .zshrc command to update the ZSH configuration
After reading the above, have you mastered how to install the ZSH terminal in CentOS 7.x? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.