石锅拌饭

cd to the latest iPhone Simulator app

by Robin Lu on Oct.14, 2008, about ,

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 Comment for this entry

Archives

Browse by tags