VSCodium(codium) 설치 스크립트 추가 및 README/NECESSARY 문서 반영
This commit is contained in:
1 parent
b41d2f68f3
commit
687ebb0e0a
7 files changed
+709
-8
No files matched your search
@@ -1,7 +1,15 @@
|
||||
# 2초마다 0번 팬(install-sh:0.0) 화면을 확인하여 선택 프롬프트가 뜨면 Enter(기본값 1번 선택) 전송
|
||||
#!/usr/bin/env bash
|
||||
# 현재 tmux 세션 이름 자동 추출
|
||||
SESSION=$(tmux display-message -p '#S')
|
||||
# 첫 번째 인자로 팬 번호를 받되, 없으면 기본값 0번 팬 사용
|
||||
PANE=${1:-0}
|
||||
TARGET="${SESSION}:0.${PANE}"
|
||||
|
||||
echo "Watching tmux pane: ${TARGET} ..."
|
||||
|
||||
while true; do
|
||||
if tmux capture-pane -t install-sh:0.0 -p | grep -q "> 1\. Yes"; then
|
||||
tmux send-keys -t install-sh:0.0 Enter
|
||||
if tmux capture-pane -t "${TARGET}" -p | grep -q "> 1\. Yes"; then
|
||||
tmux send-keys -t "${TARGET}" Enter
|
||||
fi
|
||||
sleep 2
|
||||
done
|
||||
Reference in new issue
Block a user