Runhistory is a project mainly written in Python, it's free.
Re-run previously entered bash-commands
runhistory is a small Python script that allows you to search and execute shell commands you entered before. It searches your BASH history file for matching commands and lists them.
This script is used as follows:
runhistory [keyword1] [keyword2] ...
This searches your ~/.bash_history for any matching keywords. If it finds matches, it lists them and allows you to chose a command to run. Put the script somewhere in your $PATH and rename it to e.g. 'rh' for easy access.