cd to the latest iPhone Simulator app

To ‘cd’ to the latest app installed in iPhone Simulator directory is such annoying. Set you free by putting the following line into your shell profile and use ‘cdapp’ for the magic:

alias cdapp='prefix=~/Library/Application\ Support/iPhone\ Simulator/User/Applications/;auuid=`ls -t "$prefix"|head -n 1`;cd "$prefix$auuid"'

1 thought on “cd to the latest iPhone Simulator app

Comments are closed.