Agent skill
tmux-config
tmux設定管理。.tmux.confの確認・編集、キーバインド設定。トリガー: tmux, tmux.conf, ターミナル分割, セッション
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/tmux-config
SKILL.md
tmux-config スキル
tmux設定ファイルの確認・編集を行う。
管理対象ファイル
| ファイル | 説明 | symlink先 |
|---|---|---|
tmux/.tmux.conf |
tmux設定 | ~/.tmux.conf |
コマンド
.tmux.conf確認
cat /Users/snkrheadz/ghq/github.com/snkrheadz/laptop/tmux/.tmux.conf
symlink状態確認
ls -la ~/.tmux.conf
tmuxセッション一覧
tmux list-sessions 2>/dev/null || echo "No running sessions"
tmuxウィンドウ一覧
tmux list-windows 2>/dev/null || echo "No running sessions"
設定の再読み込み(tmux内で実行)
tmux source-file ~/.tmux.conf
tmuxバージョン確認
tmux -V
.tmux.confの主要設定
プレフィックスキー
# デフォルト: Ctrl+b
# よく使われる変更: Ctrl+a
set -g prefix C-a
unbind C-b
bind C-a send-prefix
ペイン操作
# 縦分割: prefix + |
bind | split-window -h
# 横分割: prefix + -
bind - split-window -v
ペイン移動
# vim風移動: prefix + h/j/k/l
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
マウス設定
set -g mouse on
コピーモード
setw -g mode-keys vi
外観
# ステータスバー
set -g status-style bg=black,fg=white
set -g status-left "[#S] "
set -g status-right "%Y-%m-%d %H:%M"
よく使うキーバインド
| キー | 説明 |
|---|---|
prefix + c |
新しいウィンドウ作成 |
prefix + n |
次のウィンドウ |
prefix + p |
前のウィンドウ |
prefix + , |
ウィンドウ名変更 |
prefix + [ |
コピーモード |
prefix + ] |
ペースト |
prefix + d |
デタッチ |
prefix + ? |
キーバインド一覧 |
実行フロー
設定確認
- .tmux.confの内容確認
- symlinkの状態確認
- 現在のセッション状態確認
設定変更
- 現在の設定を確認
- 変更内容を提案
- ファイルを編集
tmux source-file ~/.tmux.confで再読み込み
使用例
- "tmux設定を確認"
- ".tmux.confの内容を見せて"
- "プレフィックスキーをCtrl+aに変更"
- "マウス操作を有効化"
- "ペインの分割キーを変更"
tmuxの基本操作
# 新しいセッション開始
tmux new -s session-name
# 既存セッションにアタッチ
tmux attach -t session-name
# セッション一覧
tmux ls
# セッション終了
tmux kill-session -t session-name
注意事項
- 設定変更後は
tmux source-file ~/.tmux.confで反映 - 一部の設定はtmux再起動が必要
- プラグインマネージャー(TPM)を使う場合は追加設定が必要
- 変更は
tmux/.tmux.confに対して行う(symlinkのため~/.tmux.confに反映)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?