4 ms·
I did that with this: function z () { if [ $# = 0 ]; then ls -lFGh else cd "$*" && ls -lFGh fi } That way if you don't speci
by breily 19y ago
I did that with this:
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.