fixing history issue in bash prompt