Skip to content

Instantly share code, notes, and snippets.

@frankitox
Last active December 17, 2020 13:40
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save frankitox/06f0468fd4d9e294c49ca86b4febf843 to your computer and use it in GitHub Desktop.
Starting shadow
#!/bin/bash
WIN_IP=$(powershell.exe -Command "(Test-Connection -ComputerName (hostname) -Count 1).IPV4Address.IPAddressToString" | sed 's/\r//')
CONFIG="'{:local-ip,\"$WIN_IP\"}'"
# logs
kitty @ launch --keep-focus --title logs --cwd=current bash
kitty @ send-text --match title:logs "cd rn\n"
kitty @ send-text --match title:logs "sleep 41\n"
kitty @ send-text --match title:logs "react-native log-android\n"
# metro
kitty @ launch --keep-focus --title metro --cwd=current bash
kitty @ send-text --match title:metro "cd rn\n"
kitty @ send-text --match title:metro "sleep 40\n"
kitty @ send-text --match title:metro "yarn start\n"
# shadow-cljs
kitty @ launch --keep-focus --title shadow-cljs --cwd=current bash
kitty @ send-text --match title:shadow-cljs "shadow-cljs -A:mobile:mobile/dev watch app --config-merge $CONFIG\n"
# term
kitty @ set-tab-title fleetito
# kitty @ send-text "sleep 43 && cd rn && react-native run-android &\n"
# react-native run-android --verbose --deviceId facfd83
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment