Last active
August 29, 2015 14:00
-
-
Save bbuck/11301018 to your computer and use it in GitHub Desktop.
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
# 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