title: zsh: how to autocomplete file names after python script name?
body: <p>I've just moved from bash to <a href="https://github.com/robbyrussell/oh-my-zsh" rel="nofollow noreferrer">zsh</a>. It's a great terminal shell, but I'm missing one property - file name completion for non-standard executables.</p>
  
  <p>For example, If ls gives <code>thread_pool_examples</code> and <code>thread_pools</code>:</p>
  
  <p><img src="https://i.stack.imgur.com/o3amQ.png" alt="enter image description here"></p>
  
  <p>Then typing <code>du</code>, space and <kbd>tab</kbd> would autocomplete the common prefix <code>thread_pool</code>, nd another click will iterate over the options:</p>
  
  <p><img src="https://i.stack.imgur.com/CqFDv.png" alt="enter image description here">
  <img src="https://i.stack.imgur.com/uwHEm.png" alt="enter image description here"></p>
  
  <p>Clicking <kbd>Enter</kbd> will pick the highlighted item.</p>
  
  <p>The problem is that this does not work with my custom scripts. For example, if I run <code>rmf</code> - a Python executable in my path - and click tab, no autocomplete options will appear.</p>
  
  <p>Any ideas how to make zsh autocomplete filenames for every executable?</p>