always ls after cd
Add this to your
.bashrc
file; every time you cd
into a directory, this function will call ls
.
function cd () { if [ -z "$1" ] then builtin cd ~; else builtin cd "$@"; fi ls; }
I hope this helps someone who is learning about Linux and web application programming with Python, Django, and Javascript.