diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-31 10:04:11 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-31 10:04:11 +0300 |
| commit | aca4f43dc309b4d4a64d52aebcb28b1951feb146 (patch) | |
| tree | ad84e3aad9585814d9152545bf504a8021a7fc5d | |
| parent | a29e3bcd43d74e584fb909f94ee7a95c411086fd (diff) | |
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 <amp@ampcode.com>
| -rw-r--r-- | tmux/tmux.conf | 4 |
1 files changed, 4 insertions, 0 deletions
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' |
