$LASTSEARCH
 – 
Last used search string
$LASTSEARCH contains the last search string used by an interactive search.
Links
BashSupport Pro is a Zsh IDE with support for $LASTSEARCH – try it now!
$LASTSEARCH
 – 
Last used search string$LASTSEARCH contains the last search string used by an interactive search.