Last active
December 28, 2015 03:09
-
-
Save YoniTsafir/7433054 to your computer and use it in GitHub Desktop.
A bash function that takes you to the directory of an app running in iOS SImulator. Add to your bash aliases file. Usage:
appdir <AppName>
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
appdir() { | |
dir=$(ps ax | grep $1.app | grep -v grep | grep -v AppCode | awk '{print "\""$5" "$6" "$7"\""} ' | sed "s/$1\.app\/$1//g") | |
eval cd "$dir" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment