I want to change the behavior of the cd command so that it changes to a directory and lists the files in that directory, but I can't seem to get it to work.
I have tried the following with no success:
% alias cd='cd $@; ls'
It lists the files of the directory as if it had changed directory but when it is done executing it leaves me in the same directory.
bash
to runcd ... && ls
when you type incd
into your prompt. – Blender Nov 18 '11 at 19:51