Add regular expressions for history and profile files.