From 1e3321c2b0b1fc612cd8abcca94d1f9e965fec82 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 4 Feb 2026 00:46:02 -0800 Subject: [PATCH] tmux: Remove tmux auto naming --- dotfiles/tmux.conf | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/dotfiles/tmux.conf b/dotfiles/tmux.conf index c9d5464d..315de2df 100644 --- a/dotfiles/tmux.conf +++ b/dotfiles/tmux.conf @@ -1,18 +1,3 @@ -# Automatically rename new sessions to the basename of the current directory -# Only runs once at session creation -set-hook -g session-created 'run-shell " - base=$(basename \"#{pane_current_path}\") - if tmux has-session -t \"$base\" 2>/dev/null; then - i=2 - while tmux has-session -t \"${base}-${i}\" 2>/dev/null; do - i=$((i+1)) - done - tmux rename-session -t \"#{session_name}\" \"${base}-${i}\" - else - tmux rename-session -t \"#{session_name}\" \"$base\" - fi -"' - # Create a new Codex session from the current pane path and switch to it. # Prefix + C starts a new session without prompting for a name. bind-key C new-session -c '#{pane_current_path}' 'codex --dangerously-bypass-approvals-and-sandbox'