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
About an EOA Wallet Signature Verification and Related Content
WEB3 A developer-focused guide to EOA wallet signature verification, covering secp256k1, ECDSA r/s/v signatures, public key recovery, keccak-256 address derivation, and how SIWE proves wallet ownership without exposing the private key.
5
An EVM wallet login interface for EOAs
WEB3 A practical EVM/EOA wallet login walkthrough covering connect wallet, SIWE-style messages, wagmi signing, nonce handling, and backend verification, explaining why login separates address connection from signature-based ownership proof.

Table of Contents