Set Up a Beautiful and Powerful Zsh for Linux | Linux
2023/12/16
Zsh is beloved by engineers for its auto-completion feature. Here we use the popular oh-my-zsh to walk through the installation and configuration of Zsh step by step!
# Install zsh
sudo apt install zsh
Steps
1. Install zsh
sudo apt install zsh
2. Install oh-my-zsh
oh-my-zsh Official- Install
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
- Set it as the default shell, so that zsh will be used as our default shell from now on
3. Set up useful zsh plugins (autosuggestions plugin)
Autosuggestions Plugin - Official
# Navigate to the oh-my-zsh plugins directory
cd ~/.oh-my-zsh/plugins/
# Clone the plugin we need
git clone https://github.com/zsh-users/zsh-autosuggestions.git
# Add the plugin name in our configuration file
sudo vim ~/.zshrc
##############################
plugins=(
git
zsh-autosuggestions
)
##############################
# Reload our zshrc
source ~/.zshrc
# Now we should see command autosuggestions