I am a long time user of ZSH. It seems to me that I used to have this functionality a long time ago but then I rewrote my .zshrc (a long time ago) and now I miss this functionality every now and then. (Of course, being a long time ago, my memory may be faulty.)
What I want is that when I am autocompleting (such as pressing tab etc.) then I don't want suggestions from my current directory if I am starting from 1 level up (i.e., '..') or more.
So if I do
/usr/share$ cd ../<tab>
then I don't want my current directory as a suggestion
/usr/share$ cd ../share/
The question is for ZSH but I would love to know if it can be done in Bash too.