7 字
1 分钟
ubuntu安装ohMyZsh及其组件
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 -)" &&zshinstall 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 &&exitinstall 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-usegit clone https://github.com/fdellwing/zsh-bat.git $ZSH_CUSTOM/plugins/zsh-bat
apt updateapt install batsource ~/.zshrc 7 字
1 分钟
Install oh-my-zsh and Its Components 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 -)" &&zshinstall 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 &&exitinstall 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-usegit clone https://github.com/fdellwing/zsh-bat.git $ZSH_CUSTOM/plugins/zsh-bat
apt updateapt install batsource ~/.zshrc 36 字
1 分钟
Ubuntuでoh-my-zshとそのコンポーネントを導入する
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テーマのインストール
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プラグインのインストール
プラグイン:
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-usegit clone https://github.com/fdellwing/zsh-bat.git $ZSH_CUSTOM/plugins/zsh-bat
apt updateapt install batsource ~/.zshrc ubuntu安装ohMyZsh及其组件
https://dreaife.tokyo/posts/ubuntu-ohmyzsh-setup/ 部分信息可能已经过时









