Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

tmux

Names the current tmux window after the project directory while Claude Code is running, then restores tmux's automatic renaming when the session ends. No-op outside tmux. Active as soon as it's installed; no setup or dependencies beyond tmux.

Verify

Start a Claude Code session inside a tmux window; the window title becomes cc:<project-dir>. It reverts to automatic renaming when the session ends. There is nothing to run standalone — the hooks call tmux directly.

How it works

hooks/hooks.json:

  • SessionStart → tmux rename-window "cc:<dir>" when $TMUX is set.
  • SessionEnd → tmux set-option -w automatic-rename on.