Skip to content

Instantly share code, notes, and snippets.

@BHSPitMonkey
Created February 8, 2013 07:01
Show Gist options
  • Save BHSPitMonkey/4737184 to your computer and use it in GitHub Desktop.
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`
# 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