updated history management in bashrc