Possible Duplicate:
rebuild auto-complete index (or whatever it's called)
After I install something via aptitude, zsh won't be able to find it until I search for it with which. For example
~ sudo apt-get install xsane
~ xsa<Tab>
~ saned
~ which xsane
/usr/bin/xsane
~xsa<Tab>
~xsane
This naturally is pretty annoying. Is there a zsh setting for this? Or is it a bug? Or what?