From aca4f43dc309b4d4a64d52aebcb28b1951feb146 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 31 May 2026 10:04:11 +0300 Subject: tmux: add prefix+@ binding to toggle A- session prefix Marks the current tmux session as an agent workload by prepending 'A-' to its name; pressing the same key again strips the prefix. Fits the existing convention used by tmux::attach in fish/conf.d/tmux.fish. Amp-Thread-ID: https://ampcode.com/threads/T-019e7cd6-bcb9-71b8-b21a-da8e7a37dc1d Co-authored-by: Amp --- tmux/tmux.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tmux/tmux.conf b/tmux/tmux.conf index 6dd48af..8147790 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -35,6 +35,10 @@ bind-key P setw synchronize-panes on bind-key r source-file ~/.config/tmux/tmux.conf \; display-message "~/.config/tmux/tmux.conf reloaded" bind-key T choose-tree +# Toggle "A-" prefix on the current session name (marks the session as an +# agent workload). Pressing it again strips the prefix. +bind-key @ run-shell 'cur=$(tmux display-message -p "#S"); case "$cur" in A-*) tmux rename-session "${cur#A-}" ;; *) tmux rename-session "A-$cur" ;; esac' + set-option -g pane-active-border-style fg=magenta,bold set -g status-right '#{@hexai_status} #[fg=colour8]| %H:%M' -- cgit v1.2.3