Last Updated: February 25, 2016
·
531
· lowerkey

Finally, cs = cd + ls

Wouldn't it be wonderful to list the contents of a directory once you enter it?

enter cs:

function cs {
    cd $1; ls
}

Doing this with an alias won't work, it seems as though the alias returns to the initial directory. Feel free to leave a comment with improvements or suggestions. I know it's a simple thing, but it'll save me a lot of key strokes in the long run.