ghostty について
ghosttyは、コマンドラインからGhosttyターミナルエミュレーターを操作・設定するスキルです。ウィンドウやタブの管理、フォントと設定の操作、起動オプション、SSH接続時のterminfo設定を扱います。
主な機能
- 01ウィンドウ、タブ、分割の管理
- 02フォントサイズの調整と一覧表示
- 03設定の表示、検証、再読み込み
- 04設定、コマンド、作業ディレクトリを指定した起動
- 05SSH接続時のterminfo問題への対処
活用シーン
- 01コマンドでターミナルのウィンドウや分割を作成
- 02フォント調整やGhostty設定の確認
- 03指定したディレクトリやコマンドでGhosttyを起動
- 04SSH接続中の端末文字の問題を解決
インストール
コマンドをコピーしてターミナルで実行します。
$
npx skills add https:/ / github.com/ dicklesworthstone/ agent_flywheel_clawdbot_skills_and_integrations --skill ghosttyインストール後、Claude Code で/ghosttyを入力して読み込まれたか確認します。
同梱ファイルreferences/COMMANDS.mdreferences/REMOTE-TERMINFO.md
詳細
Ghostty CLI
主な機能: コマンドラインからGhosttyターミナルエミュレーターを制御、設定します。
クイックスタート
# CLI location (or symlinked as `ghostty`)
/Applications/Ghostty.app/Contents/MacOS/ghostty
# List available actions
ghostty +list-actions
# Check version
ghostty --version
そのまま使えるプロンプト — ウィンドウ/タブの管理
# New window
ghostty +new-window
# New tab
ghostty +new-tab
# Splits
ghostty +new-split:right
ghostty +new-split:down
# Navigate splits
ghostty +goto-split:up
ghostty +goto-split:down
ghostty +goto-split:left
ghostty +goto-split:right
# Close current surface
ghostty +close-surface
# Toggle fullscreen
ghostty +toggle-fullscreen
そのまま使えるプロンプト — フォントの管理
# Adjust font size
ghostty +increase-font-size:1
ghostty +decrease-font-size:1
ghostty +reset-font-size
# List available fonts
ghostty +list-fonts
そのまま使えるプロンプト — 設定
# Config file: ~/.config/ghostty/config
# Show current config
ghostty +show-config
# Validate config
ghostty +validate-config
# Reload config (live)
ghostty +reload-config
# List themes/keybinds
ghostty +list-themes
ghostty +list-keybinds
起動オプション
# Start with specific config
ghostty --config-file=/path/to/config
# Start with command
ghostty -e "htop"
# Start in directory
ghostty --working-directory=/path/to/dir
基本コマンド
| 操作 | コマンド |
|---|---|
| 新しいウィンドウ | ghostty +new-window |
| 新しいタブ | ghostty +new-tab |
| 右に分割 | ghostty +new-split:right |
| 下に分割 | ghostty +new-split:down |
| 閉じる | ghostty +close-surface |
| 設定を再読み込み | ghostty +reload-config |
トラブルシューティング:リモートSSH
問題: SSH経由でテンキーのEnterキーを押すと、[57414uという文字化けが表示されます。
簡単な解決方法:
infocmp -x xterm-ghostty | ssh user@server 'mkdir -p ~/.terminfo && tic -x -o ~/.terminfo -'
代替方法(terminfoにアクセスできない場合):
alias myserver='TERM=xterm-256color ssh user@myserver'
詳しいガイド:REMOTE-TERMINFO.md
参考資料
| トピック | 参考資料 |
|---|---|
| すべてのコマンド | COMMANDS.md |
| リモートterminfoの設定 | REMOTE-TERMINFO.md |
コメント
Markdown 対応