mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
feat: Add dynamic tmux window size detection to recording script
This commit is contained in:
parent
4ceaed7183
commit
3ba75c5a62
1 changed files with 7 additions and 0 deletions
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Get tmux window size (width x height)
|
||||||
|
TMUX_SIZE=$(tmux display -p '#{window_width}x#{window_height}')
|
||||||
|
|
||||||
|
# Start asciinema recording with the tmux window size
|
||||||
|
asciinema rec -c "tmux attach -t 0 -r" tmp.cast --headless --append --tty-size $TMUX_SIZE
|
Loading…
Add table
Add a link
Reference in a new issue