mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 04:14:59 +00:00
feat: add check for exactly one active tmux window
This commit is contained in:
parent
89c9290602
commit
4cf9679334
1 changed files with 7 additions and 0 deletions
|
@ -1,5 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Check if there is exactly one active window
|
||||
WINDOW_COUNT=$(tmux list-windows | wc -l)
|
||||
if [ "$WINDOW_COUNT" -ne 1 ]; then
|
||||
echo "Error: Expected exactly 1 tmux window, found $WINDOW_COUNT windows."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Get tmux window size (width x height)
|
||||
TMUX_SIZE=$(tmux display -p '#{window_width}x#{window_height}')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue