1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Mac】ターミナルをかっこ良くする oh-my-zsh, Powerlevel10k

Posted at

最近、ブログやYouTubeでかっこいいターミナルを見かけるのですが、これは、oh-my-zshというZSHのプラグインを使うとできるみたいです。ということで、試してみました。

oh-my-zsh_00.png

インストールすると、使っているOSのロゴやフォルダ・レポジトリにアイコンが付いたり、現在時刻などが良い感じに表示されるようなります。

インストール

1. oh-my-zsh

最初に、oh-my-zshというプラグインをインストールします。

oh-my-zsh

iTermやTerminalで次のコマンドを実行します。

% sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

スクリプトがダウンロードされ、インストールされます。

% sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Cloning Oh My Zsh...
remote: Enumerating objects: 1463, done.
remote: Counting objects: 100% (1463/1463), done.
remote: Compressing objects: 100% (1395/1395), done.
remote: Total 1463 (delta 57), reused 1261 (delta 40), pack-reused 0 (from 0)
Receiving objects: 100% (1463/1463), 3.29 MiB | 38.26 MiB/s, done.
Resolving deltas: 100% (57/57), done.
From https://github.com/ohmyzsh/ohmyzsh
 * [new branch]      dependabot/pip/dot-github/workflows/dependencies/certifi-2025.6.15 -> origin/dependabot/pip/dot-github/workflows/dependencies/certifi-2025.6.15
 * [new branch]      master     -> origin/master
branch 'master' set up to track 'origin/master'.
Switched to a new branch 'master'
/Users/hoge

Looking for an existing zsh config...
Found /Users/hoge/.zshrc. Backing up to /Users/hoge/.zshrc.pre-oh-my-zsh
Using the Oh My Zsh template file and adding it to /Users/hoge/.zshrc.

         __                                     __
  ____  / /_     ____ ___  __  __   ____  _____/ /_
 / __ \/ __ \   / __ `__ \/ / / /  /_  / / ___/ __ \
/ /_/ / / / /  / / / / / / /_/ /    / /_(__  ) / / /
\____/_/ /_/  /_/ /_/ /_/\__, /    /___/____/_/ /_/
                        /____/                       ....is now installed!


Before you scream Oh My Zsh! look over the `.zshrc` file to select plugins, themes, and options.

• Follow us on X: @ohmyzsh
• Join our Discord community: Discord server
• Get stickers, t-shirts, coffee mugs and more: Planet Argon Shop

➜  ~

インストールすると、.zshrcに設定が追記されます。

2. Powerlevel10k

次に、Powerlevel10kというoh-my-zshのテーマをインストールします。

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k"

アイコンを表示するために、フォントファイルをインストールするか聞かれますので、yを選択してください。

image.png

この後、いくつかテーマのデザインの種類が聞かれますので、お好みのデザインを選んでください。

設定が完了すると、iTermもしくはターミナルの再起動を聞かれるので、再起動してください。

image.png

インストール完了です!

image.png

こんな感じで表示されたら、インストール成功です。image.png

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?