Make tmux work with claude installed via claude.com install.sh script

This commit is contained in:
Jonny Barnes 2026-06-10 15:26:01 +01:00
commit b441c47098
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8

View file

@ -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 |