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.
bashto runcd ... && lswhen you type incdinto your prompt.