bashrc & zshrc: fix top10 function

it was missing escaping of \history and it was returning timestamps