Created
February 8, 2013 07:01
-
-
Save BHSPitMonkey/4737184 to your computer and use it in GitHub Desktop.
Bash function for easily switching between iOS devices to deploy to using Theos. Lives in `.profile`
This file contains hidden or 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
# Select iOS device to test on | |
function device() { | |
case "$1" in | |
4s) NAME="iPhone 4S" | |
THEOS_DEVICE_IP="192.168.1.333" | |
;; | |
4g) NAME="iPod Touch 4G" | |
THEOS_DEVICE_IP="192.168.1.222" | |
;; | |
*) NAME="iPod Touch 2G" | |
THEOS_DEVICE_IP="192.168.1.111" | |
;; | |
esac | |
export THEOS_DEVICE_IP | |
echo "Using device $NAME." | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment