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"'

有一条关于 “cd to the latest iPhone Simulator app”的留言

发表你的看法

Recent Posts:

Recent Comments:

Archive:

Tags:

Bookmarks:

My music:

About Me:

I am a software engineer in Beijing, China. I write code for work and for fun. I am interested in web technology, life hacking and console games. This blog is dumped from my left brain.
View Robin Lu's profile on LinkedIn

My Flickr:

    scribbleAt Modern Sky Music FestivalIMG_0389IMG_0312urumqi panaramaIMG_9664

Friends: