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.
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.