Hacker News new | past | comments | ask | show | jobs | submit login

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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: