From b441c4709873f048a32474faf30e20faf9c60497 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Wed, 10 Jun 2026 15:26:01 +0100 Subject: [PATCH] Make tmux work with claude installed via claude.com install.sh script --- zsh/plugins/functions.plugin.zsh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/zsh/plugins/functions.plugin.zsh b/zsh/plugins/functions.plugin.zsh index 44056f0..5ac34cc 100644 --- a/zsh/plugins/functions.plugin.zsh +++ b/zsh/plugins/functions.plugin.zsh @@ -2,6 +2,17 @@ # Functions +# Run claude, naming the tmux window after it. +# The native installer's binary is named after its version (e.g. "2.1.170"), +# so tmux's automatic-rename picks that up instead of "claude". +function claude() { + if [ -n "$TMUX" ]; then + tmux rename-window claude + fi + + command claude "$@" +} + # Delete branches selected via fzf function delete-branches() { git branch |