&gt; I guess it shouldn&#x27;t be the shell to do that, but the terminal<p>How would this work over SSH? What if you&#x27;re using a temporary shell as another user? Also, the terminal really shouldn&#x27;t have to know what is going on in the shell in order to work reliably. Tools like tmux, screen… should not have to perform directory completion.