Yuto Blog

Yuto Blog

Japan, Code and Photo
Install Oh my Zsh on Ubuntu
Install Oh my Zsh on Ubuntu
Updated by Yuto Yasunaga at 2021/06/19 20:01

Install Zsh

sudo apt update
sudo apt install zsh powerline fonts-powerline

Make default

zsh
chsh -s $(which zsh)

Install oh-my-zsh

git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
source .zshrc

Use "agnoster" theme

~/.zshrc
ZSH_THEME="agnoster"

Plugins

zsh-syntax-highlighting

Install:

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
~/.zshrc
plugins=( 
    # other plugins...
    zsh-syntax-highlighting
)

zsh-autosuggestions

Install:

git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
~/.zshrc
plugins=( 
    # other plugins...
    zsh-autosuggestions
)

Back