Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to install zsh in ubuntu

Shulou Source: shulou.com Published: 2022-06-01 01:45:59 09月22日 Update

This article mainly introduces how to install zsh in ubuntu. It is very detailed and has a certain reference value. Friends who are interested must finish it!

Linux beautifies ZSH to view the current shell###echo $SHELL

Note: / bin/bash by default

Install zsh

Redhat/Centos

Yum install-y zsh

Ubuntu

Sudo apt-get install zsh-y switches the current shell to zshzsh-- versionsudo chsh-s $(which zsh)

You need to restart the system to take effect. After rebooting, you should see a new effect # start installing oh-my-zsh###

Sh-c "$(curl-fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"install plugins

Add plug-ins, change the theme themes, please modify ~ / .zshrc

For example, add a history plug-in # cd ~ / .oh-my-zsh/plugins

Check which plug-ins are available, find out which plug-ins you want to use, and go to the directory of the plug-ins you want to install, where there are README.md instructions.

Vim / .zshrc

Edit this file and find it in the file

Plugins= (git)

Add the plug-ins you want to use below, such as plugins= (history), save exit, restart the system; at this time, you can follow the instructions file to use the h command to view the history command.

Oh-my-zsh uses links

Change zsh theme

Edit. / .zshrc

Replace ZSH_THEME=agnoster

Save and exit

If the terminal appears garbled after reboot, you can install the font, then select the corresponding font font in the terminal settings, and then restart your system.

The above is all the contents of the article "how to install zsh in ubuntu". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Plug-ins files systems content commands fonts articles terminals topics garbled values instructions interests history guys buddies situations effects more directories Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Shulou Tech Info Redmi Xiaomi OPPO Reno