by jsrn · 18y ago · 0 comments
alias cdd='cd $l; ls'
I can't find the original slides, here is a writeup by cromatic:http://www.oreillynet.com/onlamp/blog/2003/07/oscon_2003_day...
function z () { if [ $# = 0 ]; then ls -lFGh else cd "$*" && ls -lFGh fi }
That way if you don't specify a directory it just does an ls.
Edit: and apparently it took away my line breaks there, but it still makes sense.
Why the heck not?