Incremental autocomplete.
The modified code is from: http://mimosa-pudica.net/zsh-incremental.html