maintain a history file for use with dmenu