The Golden Spot

I hope this helps someone who is learning about Linux and web application programming with Python, Django, and Javascript.

Tuesday, June 12, 2012

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;
}

0 Comments:

Post a Comment

<< Home