How to install zsh and oh-my-zsh on ubuntu?
How to install zsh and oh-my-zsh on ubuntu?
Do you want to use a fancy terminal? Install zsh and oh-my-zsh.
Install zsh
1
sudo apt install zsh
Install Oh-My-Zsh
Visit https://ohmyz.sh, copy, and execute the following command:
1
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Plugins
- https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins
- https://github.com/zsh-users
- https://github.com/zsh-users/zsh-autosuggestions
Install Plugin Example
I’ve used zsh-autosuggestions for a long time. Here’s how to add this plugin to your ~/.zshrc file:
1
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
Then open your ~/.zshrc file, find the plugins section, and add zsh-autosuggestions:
1
2
3
4
plugins=(
# other plugins...
zsh-autosuggestions
)
Start a new terminal session, and you’ll have autosuggestions.
This post is licensed under CC BY 4.0 by the author.