Re:Zsh is your friend.
by bellbind on Thursday February 02, 2012 @03:07AM
(#3541912)
AFAIK this is not possible with fish, as variables cannot be used as commands like in bash (and the ! history feature does not exist in fish, it is designed to be fully interactive).
See http://fishshell.com/user_doc/faq.html#faq-history