From 7f61090a82aac9cfa01774a81ac5d57e0c3932ad Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 4 Feb 2026 00:28:40 -0800 Subject: [PATCH] tmux: add Codex session shortcut --- dotfiles/tmux.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dotfiles/tmux.conf b/dotfiles/tmux.conf index 31a68d2f..dc6932e4 100644 --- a/dotfiles/tmux.conf +++ b/dotfiles/tmux.conf @@ -12,3 +12,8 @@ set-hook -g session-created 'run-shell " tmux rename-session -t \"#{session_name}\" \"$base\" fi "' + +# Create a new Codex session from the current pane path and switch to it. +# Prefix + C prompts for the session name (default: "-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 '%%'"