From b743c255a72998d690a13df115306e2db4aa475d Mon Sep 17 00:00:00 2001 From: Amolith Date: Fri, 24 Apr 2026 16:21:38 -0600 Subject: [PATCH] tmux: Print anchor, sleep 1 --- skills/working-with-tmux/SKILL.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/skills/working-with-tmux/SKILL.md b/skills/working-with-tmux/SKILL.md index 74edbcd09a65ee28fe7929ae6585e4acd85a1c8b..c46ef0e834091921916204e9a8a57de81f9abdd4 100644 --- a/skills/working-with-tmux/SKILL.md +++ b/skills/working-with-tmux/SKILL.md @@ -73,8 +73,9 @@ When prompts are long or appear in scrollback noise, generate random anchors to ```bash A=$(openssl rand -hex 4) +echo "A: $A" tmux send-keys -t "ID" "echo ${A}-st; YOUR_COMMAND; echo ${A}-end" C-m -# Then extract: +sleep 1 tmux capture-pane -p -S - -t "ID" | sed -n '/^'"$A"'-st$/,/^'"$A"'-end$/{/^'"$A"'/d;p}' ```