cd to the latest iPhone Simulator app
by Robin Lu on Oct.14, 2008, about hack, iphone
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"'
October 18th, 2008 on 9:10 pm
非常有用!! 謝謝前輩!!!