smart change of directory in a Unix shell, IPython and Vim