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.
Written by Joshua Moore
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#.bashrc
Authors
Related Tags
#.bashrc
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#