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.
cdpath
, try unsetting it:cdpath=()
.oh-my-zsh
, and this behaviour disappears when I don't source it. But I'm still wondering which setting is responsible, so I can just turn that one off./home
and have enabledautocd
this is expected as it is completing a directory./home/jogloran
). I want to access a directory/home/jogloran/apple/banana
, so I typecd apple/ba<TAB>
. But in addition to the pathapple/banana
, there's a user calledbambi
, and there are two completion candidates:bambi
andbanana
. Worse,bambi
comes first in the completion list. If I selectbambi
, I get taken to~bambi
. I'm not in/home
, so this isn't expected behaviour, and I've triedcdpath=()
beforehand.