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}' ```