tmux: add Codex session shortcut

This commit is contained in:
2026-02-04 00:28:40 -08:00
parent 56c9ddf508
commit 7f61090a82

View File

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