Fix issue in zshrc where history would produce incorrect output