Many times, when I create a new directory, the first thing I want to do is open it. The snippet below will immediately change to a directory after you create it.

mkdir foo && cd !$