Skip to content

Instantly share code, notes, and snippets.

@mtskf
Last active January 9, 2026 05:24
Show Gist options
  • Select an option

  • Save mtskf/77b1b0eadab7eee201984098fe160ece to your computer and use it in GitHub Desktop.

Select an option

Save mtskf/77b1b0eadab7eee201984098fe160ece to your computer and use it in GitHub Desktop.
Basic config files
# ==============================================================================
# Ghostty 設定ファイル
# Documentation: https://ghostty.org/docs/config
# ==============================================================================
# ==============================================================================
# 🎨 テーマ・カラー
# ==============================================================================
# テーマ一覧: ghostty +list-themes
# theme = Argonaut
# theme = Synthwave
# theme = Nord
theme = TokyoNight
background = #090B11
# ==============================================================================
# 🔤 フォント
# ==============================================================================
# font-family = "BlexMono Nerd Font Mono"
font-size = 12
adjust-cell-height = 5%
# リガチャ(合字)を無効化
font-feature = -calt
font-feature = -liga
# ==============================================================================
# 🪟 ウィンドウ
# ==============================================================================
window-padding-x = 16
window-padding-y = 0
window-padding-balance = true
window-decoration = true
# 画面分割の区切り線
split-divider-color = #252a33
# ==============================================================================
# 🍎 macOS固有
# ==============================================================================
macos-titlebar-style = transparent
macos-window-shadow = true
# ==============================================================================
# ✏️ カーソル・表示
# ==============================================================================
cursor-style = block
# cursor-style-blink = false
mouse-hide-while-typing = true
unfocused-split-opacity = 0.75
resize-overlay = never
# ==============================================================================
# 🐚 シェル統合
# ==============================================================================
# 新規ウィンドウ/タブで作業ディレクトリを引き継ぐ
shell-integration = zsh
shell-integration-features = no-cursor,sudo,title
# ==============================================================================
# 📜 履歴・クリップボード
# ==============================================================================
scrollback-limit = 50000
copy-on-select = true
clipboard-read = allow
clipboard-write = allow
# コマンド完了時に通知
# desktop-notifications = true
# ==============================================================================
# ⌨️ キーバインド
# ==============================================================================
# --- 画面分割 ---
keybind = cmd+enter=new_split:down
keybind = cmd+shift+enter=new_split:right
keybind = cmd+w=close_surface
# --- 分割画面の移動 (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 + Opt + 矢印) ---
keybind = cmd+alt+left=previous_tab
keybind = cmd+alt+right=next_tab
# --- その他 ---
keybind = cmd+k=clear_screen
keybind = shift+enter=text:\n
# --- クイックターミナル (グローバルホットキー) ---
keybind = global:cmd+grave_accent=toggle_quick_terminal
quick-terminal-position = right
quick-terminal-animation-duration = 0.1
# エディタ補完用のスキーマ
"$schema" = 'https://starship.rs/config-schema.json'
# プロンプト間に空行を挿入
add_newline = true
# プロンプトのレイアウト
format = """
$directory$git_branch$git_status$package$nodejs$fill$battery$time
$character"""
[gcloud]
disabled = true
[battery]
full_symbol = '🔋 '
charging_symbol = '⚡️ '
discharging_symbol = '🔋 '
[[battery.display]]
threshold = 30
style = 'bold yellow'
[[battery.display]]
threshold = 10
style = 'bold red'
discharging_symbol = '💀 '
# "on" を消してスッキリ
[git_branch]
symbol = ''
format = '[$symbol$branch(:$remote_branch)]($style) '
# Git状態を絵文字で表示
[git_status]
format = '[\[$all_status$ahead_behind\]](purple) '
conflicted = '💥'
ahead = '⬆️${count}'
behind = '⬇️${count}'
diverged = '🔀⬆️${ahead_count}⬇️${behind_count}'
untracked = '🌚'
stashed = '📥'
modified = '✏️'
staged = '✅'
renamed = "🏷"
deleted = '🗑️'
# パッケージバージョン
# パッケージバージョン前の"is"を消してスッキリ
[package]
disabled = true
# format = '[$symbol$version]($style) '
# "via" を消してスッキリ
[nodejs]
format = '[$symbol$version]($style) '
# ディレクトリ表示
[directory]
format = '📁 [$path]($style) '
truncation_length = 3
truncate_to_repo = true
read_only = '🔒'
# 成功/失敗で色を変える
[character]
success_symbol = '[❯](bold green)'
error_symbol = '[❯](bold red)'
# 時刻表示
[time]
disabled = false
format = '[$time]($style)'
time_format = '%H:%M'
# 区切り線
[fill]
symbol = '─'
style = 'fg:#252a33'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment