mobile wallpaper 1mobile wallpaper 2mobile wallpaper 3mobile wallpaper 4
7 words
1 minute
Install oh-my-zsh and Its Components on Ubuntu
2024-12-03

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 pulgins#

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!

Install oh-my-zsh and Its Components 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

Related Posts Smart
1
Use NAT on Ubuntu to Forward Network Access to a Router
prog-side By modifying Netplan configuration, enabling IP forwarding, and configuring NAT forwarding, Ubuntu can be used to forward network access to a router. The steps include clearing existing configuration, setting a static IP, installing and configuring DHCP services, and verifying that network sharing works correctly.
2
missing-semester-class01
prog-side This article introduces the basic features and usage of the shell, including how to run programs, navigate paths, manage file permissions, redirect input/output streams, and manage root user privileges. It provides multiple bash command examples and after-class exercises to reinforce learning.
3
Getting Started with Regular Expressions
prog-side Regular expressions are powerful text pattern-matching tools used to describe and match specific string patterns. They include literal characters, special characters, character classes, and metacharacters, and are widely used in many programming languages and text processing tools. Regular expressions can be used for data validation, text replacement, and substring extraction, offering strong flexibility and functionality. Common metacharacters and features include character matching, quantifiers, boundary matching, and grouping, which help users process text efficiently.
4
The First Round of Selection in the New Era
life With the development of AI technology, the cost of using advanced models may lead to social stratification, where only those with strong financial means can use these models. Although current prices are still acceptable, future price increases may make them unaffordable for most people, thus forming the first round of selection. The author feels anxious about this phenomenon, while also realizing that AI applications have moved beyond programming and into broader industries. Facing the challenges and opportunities of a new world, individuals continue to explore under the momentum of the times.
5
Psychological Record 1
psycho Realizing I’ve been suppressing my emotions, reflecting on how past living habits have led to fear of the outside world and inner stillness. Hoping to find my true self through interacting with the world, while facing the sense of responsibility in choosing a direction and the fear of losing other possibilities. The true self needs to be shaped through exploration, and choosing a future direction means giving up other possibilities.

Table of Contents