mobile wallpaper 1mobile wallpaper 2mobile wallpaper 3mobile wallpaper 4
7 words
1 minute
Installing Oh My Zsh and Its Plugins on Ubuntu

install zsh#

sudo apt install -y zsh git || sudo pacman -S --needed zsh git || sudo yum install zsh git || sudo zypper in zsh git || sudo apk add zsh git;
sh -c "$(wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)" &&
zsh

install theme#

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k &&
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions &&
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting &&
sed -i 's/ZSH_THEME="robbyrussell"/ZSH_THEME="powerlevel10k\/powerlevel10k"/' ~/.zshrc &&
sed -i '/^plugins=(git)$/c\
plugins=(\
git\
sudo\
command-not-found\
safe-paste\
vi-mode\
you-should-use\
zsh-bat\
zsh-autosuggestions\
zsh-syntax-highlighting\
)' ~/.zshrc &&
exit

install plugins#

plugins:

plugins=(
git
sudo
command-not-found
safe-paste
vi-mode
you-should-use
zsh-bat
zsh-autosuggestions
zsh-syntax-highlighting
)
git clone https://github.com/MichaelAquilina/zsh-you-should-use.git $ZSH_CUSTOM/plugins/you-should-use
git clone https://github.com/fdellwing/zsh-bat.git $ZSH_CUSTOM/plugins/zsh-bat
apt update
apt install bat
source ~/.zshrc
Share

If this article helped you, please share it with others!

Installing Oh My Zsh and Its Plugins on Ubuntu
https://dreaife.tokyo/en/posts/ubuntu-ohmyzsh-setup/
Author
dreaife
Published at
2024-12-03
License
CC BY-NC-SA 4.0

Some information may be outdated

Table of Contents