Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

that would be rather

    shopt -s autocd


Yeppity.

> autocd If set, a command name that is the name of a directory is executed as if it were the argument to the cd command. This option is only used by interactive shells


Whoops, sorry. That's right.




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

Search: