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にOh My Zshとそのコンポーネントをインストールする
https://dreaife.tokyo/jp/posts/ubuntu-ohmyzsh-setup/ 一部の情報は古い可能性があります
関連した投稿 スマート
1
UbuntuのNATを介してネットワークをルーターへ転送する
試行錯誤 UbuntuでNetplanの固定IP、IPフォワーディング、DHCP、NATを設定し、ホスト回線をルーターへ共有してクライアント接続を検証します。
2
不足している学期-class01
学び Missing Semesterのシェル入門ノート。コマンド実行、パス移動、権限、パイプ、入出力リダイレクト、root権限を例題付きで整理します。
3
異なる日時形式でpandas.to_datetimeを使用した際にエラーが発生するケースについて
試行錯誤 pandas.to_datetimeで日付形式が混在するときのエラーを、format="mixed"で解決する方法をコード例とともに解説します。
4
Alibaba CloudでDocker+code-serverを構成してオンラインコンパイラを実現する
試行錯誤 Alibaba Cloud上でDocker、Nginx、code-serverを使い、オンラインC/C++開発環境を構築する手順。ミラー設定、コンテナ起動、コンパイラ導入、テスト実行までを扱います。
5
CSAPP 第1章 コンピュータシステム概説
学び 『CSAPP』第1章の読書ノート。ビットとコンパイルからCPU実行、キャッシュ、OSの抽象化、プロセス、仮想メモリまで、計算機システム全体をたどります。





