mobile wallpaper 1mobile wallpaper 2mobile wallpaper 3mobile wallpaper 4mobile wallpaper 5mobile wallpaper 6
7 字
1 分钟
ubuntu安装ohMyZsh及其组件
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
分享

如果这篇文章对你有帮助,欢迎分享给更多人!

ubuntu安装ohMyZsh及其组件
https://dreaife.tokyo/posts/ubuntu-ohmyzsh-setup/
作者
dreaife
发布于
2024-12-03
许可协议
CC BY-NC-SA 4.0

部分信息可能已经过时