Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mobile-build): add tmux config to have better devx
- Loading branch information
Showing
2 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
read_char() { | ||
stty -icanon -echo | ||
eval "$1=\$(dd bs=1 count=1 2>/dev/null)" | ||
stty icanon echo | ||
} | ||
|
||
char= | ||
|
||
make run.${PLATFORM}.debug || true | ||
|
||
while true; do | ||
echo | ||
echo 'Press r -> Rebuild the native code' | ||
printf 'Press q -> Quit tmux. If the pane is dead, use ctrl-b then & then y' | ||
read_char char | ||
|
||
echo | ||
echo | ||
if [ "$char" = "r" ]; then | ||
make run.${PLATFORM}.debug || true | ||
elif [ "$char" = "q" ]; then | ||
tmux kill-window | ||
fi | ||
done < "${1:-/dev/stdin}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters