Oh-My-Zsh – How to Enable Completion on Home Directory Names

autocompleteoh-my-zshzsh

I recently switched to zsh from bash, and I'm using oh-my-zsh. There's a completion behaviour I don't want: in any directory, the list of autocompletion candidates seems to include the names of all users' home directories.

I wasn't able to find the right zsh option to disable this behaviour out of the hundreds that exist.

Best Answer

The option responsible for this behaviour is `cdable_vars'. It's not enabled by default.

See the Manual's chapter about Options for details.