_complete-recent-args -- complete words from recent history install put _complete-recent-args under $fpath, restart zsh. usage press ^X., select word you want to insert.