tab completion should only be on appropriate things

First argument (cd, ls, ...) determines whether we include locations
and/or items in search for autocomplete