tmux: remove prompt from codex session shortcut

This commit is contained in:
2026-02-04 00:36:58 -08:00
parent 2a24fde229
commit f1142f58a8

View File

@@ -14,6 +14,5 @@ set-hook -g session-created 'run-shell "
"' "'
# Create a new Codex session from the current pane path and switch to it. # Create a new Codex session from the current pane path and switch to it.
# Prefix + C prompts for the session name (default: "<current>-codex"). # Prefix + C starts a new session without prompting for a name.
bind-key C command-prompt -p "Codex session name:" -I "#{session_name}-codex" \ bind-key C new-session -c '#{pane_current_path}' 'codex --dangerously-bypass-approvals-and-sandbox'
"new-session -d -s '%%' -c '#{pane_current_path}' 'codex --dangerously-bypass-approvals-and-sandbox' \; switch-client -t '%%'"