Don't rehash after each command, only when last command was pacman/yaourt