better history managment in bash