Updated history syncing in bash