fix(zsh): update method to replace history