Ghosttyへ入門する
概要
あけましておめでとうございます🌅 2026年、最初の記事です。
これまでずっとiTerm2を使っていたのですが、t_wadaさんのXのポストを見て、どうやら Ghostty が、Claude Codeと相性が良さそうという事でGhosttyに入門してみます。
事前に動作検証した環境を書いておきます。
| OS | バージョン |
|---|---|
| macOS | Sonoma14 |
| zsh | zsh 5.9 (arm-apple-darwin23.6.0) |
| brew | Homebrew 5.0.7 |
Ghosttyをインストールする
まず、最初に以下のGhosttyの公式ページにアクセスします。
Ghostty is a fast, feature-rich, and cross-platform terminal emulator that uses platform-native UI and GPU acceleration.
Ghosttyは、プラットフォームネイティブUIとGPUアクセラレーションを活用した、高速かつ高機能なクロスプラットフォーム対応のターミナルエミュレーターです。
HPからMacとLinuxでそれぞれの環境に合わせてアプリケーションをダウンロードします。

ちなみにMac環境の場合はbrewコマンドでもインストールが可能です。
brew install --cask ghostty
インストールに成功すると以下の画面が出ます。

(※事前にzshでカスタマイズしているので、デフォルトでの画面とは少し違うかもしれないです。)
バージョンの確認
# ghostty --version [~]
Ghostty 1.2.3
Version
- version: 1.2.3
- channel: stable
Build Config
- Zig version : 0.14.1
- build mode : builtin.OptimizeMode.ReleaseFast
- app runtime : apprt.Runtime.none
- font engine : font.main.Backend.coretext
- renderer : renderer.generic.Renderer(renderer.Metal)
- libxev : kqueue
ちなみにtime seq 1 10000000で性能を比較をした所、iTerm2が12sの所、Ghosttyは9sだったので、比較しても軽量な事がわかります。
カスタマイズ設定について
Macの場合はアイコンを右クリックしていただいて「Settings」から設定ができます。

デフォルトだと以下の文章がコメントアウトで入っています。
# This is the configuration file for Ghostty.
#
# This template file has been automatically created at the following
# path since Ghostty couldn't find any existing config files on your system:
#
# /Users/****/Library/Application Support/com.mitchellh.ghostty/config
#
# The template does not set any default options, since Ghostty ships
# with sensible defaults for all options. Users should only need to set
# options that they want to change from the default.
#
# Run `ghostty +show-config --default --docs` to view a list of
# all available config options and their default values.
#
# Additionally, each config option is also explained in detail
# on Ghostty's website, at https://ghostty.org/docs/config.
#
# Ghostty can reload the configuration while running by using the menu
# options or the bound key (default: Command + Shift + comma on macOS and
# Control + Shift + comma on other platforms). Not all config options can be
# reloaded while running; some only apply to new windows and others may require
# a full restart to take effect.
# Config syntax crash course
# ==========================
# # The config file consists of simple key-value pairs,
# # separated by equals signs.
# font-family = Iosevka
# window-padding-x = 2
#
# # Spacing around the equals sign does not matter.
# # All of these are identical:
# key=value
# key= value
# key =value
# key = value
#
# # Any line beginning with a # is a comment. It's not possible to put
# # a comment after a config option, since it would be interpreted as a
# # part of the value. For example, this will have a value of "#123abc":
# background = #123abc
#
# # Empty values are used to reset config keys to default.
# key =
#
# # Some config options have unique syntaxes for their value,
# # which is explained in the docs for that config option.
# # Just for example:
# resize-overlay-duration = 4s 200ms
日本語訳
これは Ghostty の設定ファイルです。
Ghostty はシステムに既存の設定ファイルが見つからなかったため、
以下のパスにこのテンプレートファイルが自動的に作成されました。
/Users/****/Library/Application Support/com.mitchellh.ghostty/config
このテンプレートではデフォルトのオプションは設定されていません。
Ghostty はすべてのオプションに適切なデフォルト値が設定されているためです。
ユーザーはデフォルトから変更したいオプションのみを設定すればよいでしょう。
利用可能なすべての設定オプションとそのデフォルト値のリストを表示するには、
ghostty +show-config --default --docs を実行してください。
さらに、各設定オプションは Ghostty のウェブサイト (https://ghostty.org/docs/config)
でも詳細に解説されています。
Ghostty は実行中に設定をリロードできます。メニューオプションや
バインドされたキー (macOS ではデフォルトで Command + Shift + comma、
その他のプラットフォームでは Control + Shift + comma) を使用します。
すべての設定オプションが実行中にリロードできるわけではありません。
一部のオプションは新しいウィンドウにのみ適用され、
その他は反映されるために完全な再起動が必要になる場合があります。
設定構文の簡単な説明
==========================
設定ファイルは、単純なキーと値のペアで構成され、
イコール符号で区切られます。
font-family = Iosevka
window-padding-x = 2
イコール符号の周りのスペースは関係ありません。
これらはすべて同じです:
key=value
key= value
key =value
key = value
# で始まる行はコメントです。設定オプションの後にコメントを付けることはできません。
その場合、値の一部として解釈されてしまいます。例えば、これは "#123abc" という値になります:
background = #123abc
空の値は、設定キーをデフォルトにリセットするために使用されます。
key =
一部の設定オプションは、値に独自の構文を持ちます。
これは、その設定オプションのドキュメントで説明されています。
例として:
resize-overlay-duration = 4s 200ms
ここを直接編集してGhosttyを自分好みにカスタマイズしていきます。
フォントについて
細かいアイコンに関してもフォントを入れたいので、Nerd Fontを使います。
Nerd Fontはプログラミング用フォントに、開発者向けのアイコン(グリフ)を追加したフォントファミリーです。Git、ファイルタイプ、各種ツールのアイコンなどが含まれています。
まず以下のコマンドを実行してインストールしましょう。
brew install --cask font-blex-mono-nerd-font
configには以下の記述を行ってください。(ここでは自分の環境の例を紹介します。)
font-family = BlexMono Nerd Font Mono
font-size = 16
実際に反映させるにはMacの場合は「Command + Shift + ,(comma)」で反映させて確認をしてください。
テーマについて
次にテーマです。ghostty +list-themesをクリックするとテーマのPreviewをみながら、設定ができるので、自分がカスタマイズしたい色などがあればこちらから選択すると良いです

ここでは例でMarianaを選択します。
configに以下の一文を追加してください。
theme = Mariana
| 変更前 | 変更後 |
|---|---|
![]() |
![]() |
このようにテーマを変更するだけでもGhosttyで使っているターミナルが簡単にカスタマイズが出来て楽しいです。
背景をちょっと透過したい
background-opacityで背景を透過します。
また、background-blur-radiusを指定するとブラーが入る為、背景に文字が含まれていてもブラー効果で邪魔にならないです。
# 背景を透過
background-opacity = 0.40
# ブラー(すりガラス効果)
background-blur-radius = 15
逆に背景を透過して、後ろの記事を元になにかコマンドを実行したい場合は background-opacityだけにすると良いです。
| 変更前 | 変更後 |
|---|---|
![]() |
![]() |
ウィンドウ内の余白を入れたい
# テキストとウィンドウの間に良い感じのスペースを入れます
window-padding-x = 10
window-padding-y = 10
window-padding-balance = true
window-padding-balancをtrueに設定すると ウィンドウサイズが変わっても、パディングが均等に配分されるようになります。
| 変更前 | 変更後 |
|---|---|
![]() |
![]() |
Macネイティブな挙動のカスタマイズ
Mac環境のみに特化したカスタマイズも可能です。
macos-titlebar-style = transparent
macos-window-shadow = true
# 入力中はマウスカーソルを隠す
mouse-hide-while-typing = true
最終的な自分のconfig(2026年1月時点)
# --- 見た目・フォント ---
# フォントサイズ(お好みで調整してください)
font-size = 14
# 行間を少し広げてモダンにする
adjust-cell-height = 10%
# フォントファミリー
# font-family = "BlexMono Nerd Font Mono"
# テーマ
theme = Mariana
# --- ウィンドウ・透明度 ---
# 背景を透過させてブラー(すりガラス効果)を入れる
background-opacity = 0.90
background-blur-radius = 20
# ウィンドウ内の余白を入れて圧迫感を減らす
window-padding-x = 10
window-padding-y = 10
window-padding-balance = true
# --- Macネイティブな挙動 ---
# タイトルバーを透明にしてスッキリさせる
macos-titlebar-style = transparent
# フルスクリーン時にMac標準の挙動にする
macos-window-shadow = true
# 入力中はマウスカーソルを隠す
mouse-hide-while-typing = true
# --- 操作性 ---
# 選択しただけでクリップボードにコピー
copy-on-select = true
# クリップボードの読み書きを許可
clipboard-read = allow
clipboard-write = allow
# --- キーバインド設定(画面分割) ---
# Cmd+Enter で「下に」分割
keybind = cmd+enter=new_split:down
# Cmd+Shift+Enter で「右に」分割
keybind = cmd+shift+enter=new_split:right
# Cmd + 矢印キー で分割した画面を「移動」
keybind = cmd+left=goto_split:left
keybind = cmd+right=goto_split:right
keybind = cmd+up=goto_split:top
keybind = cmd+down=goto_split:bottom
# Cmd + Shift + 矢印キー でサイズを「調整」
keybind = cmd+shift+left=resize_split:left,20
keybind = cmd+shift+right=resize_split:right,20
keybind = cmd+shift+up=resize_split:up,20
keybind = cmd+shift+down=resize_split:down,20
# Cmd + W で現在の「ペイン(分割)」を閉じる
keybind = cmd+w=close_surface
まとめ
「Ghosttyへ入門する」という事でインストールから、簡単なカスタマイズ方法についてもご紹介しました! これまで他のターミナルを使っていた方は、すぐに利用できると思いますので、ぜひ挑戦してみてください!




Discussion