Skip to content

Instantly share code, notes, and snippets.

@bbuck
Last active August 29, 2015 14:00
Show Gist options
  • Save bbuck/11301018 to your computer and use it in GitHub Desktop.
Save bbuck/11301018 to your computer and use it in GitHub Desktop.
# Open SQLiteMan on the iOS simulator SQL DB
function ios_sql {
local IOS_VERSION;
local SQLITE;
DEFAULT_IOS_VERSION="7.0.3"
IOS_VERSION=${1:-$DEFAULT_IOS_VERSION}
echo $IOS_VERSION
SQLITE=$(find ~/Library/Application\ Support/iPhone\ Simulator/$IOS_VERSION -regex ".*\.sqlite" | head -1)
echo $SQLITE
sqliteman "$SQLITE"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment